【发布时间】:2018-04-16 23:15:00
【问题描述】:
我目前正在使用 wordpress 功能发送电子邮件 wp_mail。但是当有内容类型标头时它不起作用。 我都试过了
$headers[] = 'Content-type: text/html; charset=UTF-8';
和
add_filter('wp_mail_content_type','set_contenttype');
function set_contenttype($content_type){
return 'text/html';
}
而且它不发送任何电子邮件。但是,如果我从这里删除内容类型,它会正常工作。 有什么办法可以解决这个问题?
【问题讨论】: