1
Şu anda wordpress işlevi kullanıyorum wp_mail e-posta göndermek için. Ancak bir İçerik türü başlığı olduğunda çalışmaz. i hemwordpress'ten e-posta göndererek sunucuda çalışmıyor
$headers[] = 'Content-type: text/html; charset=UTF-8';
ve
add_filter('wp_mail_content_type','set_contenttype');
function set_contenttype($content_type){
return 'text/html';
}
ve onun tüm e-postaları gönderme çalıştı. Ancak içerik türünü buradan kaldırırsam düzgün çalışıyor. Bu sorunun çözümü ne olabilir?
add_filter('wp_mail_content_type',create_function('', 'return "text/html"; '));
sonra çağrı wp_mail
işlevi: