📜  wp 邮件 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:34.325000             🧑  作者: Mango

代码示例1
$to = 'sendto@example.com';
$subject = 'The subject';
$body = 'The email body content';
$headers = array('Content-Type: text/html; charset=UTF-8');
 
wp_mail( $to, $subject, $body, $headers );