You must have a plugin that affects how WordPress delivers email. Can you list what plugins you have active?
Sorry I am not getting well
You must have a plugin that affects how WordPress delivers email.
Are you talking about any plugin for email? If yes, I am not using any plugin for send mail but I am using SMPT mail with override wordpress “phpmailer_init” function
See below function
add_action( 'phpmailer_init', 'wpse8170_phpmailer_init' );
function wpse8170_phpmailer_init( PHPMailer $phpmailer ) {
$phpmailer->Host = 'smtp.gmail.com';
$phpmailer->Port = xxx; // could be different
$phpmailer->Username = 'xxx@gmail.com'; // if required
$phpmailer->Password = 'xxx'; // if required
$phpmailer->SMTPAuth = true; // if required
$phpmailer->SMTPSecure = 'tls'; // enable if required, 'tls' is another possible value
$phpmailer->IsSMTP();
}
Same problem here!
I am using the plugin “Postman SMTP”. But emails are not sent with css styles in v2.5.
With the following in functions.php, the mails are sent in text/html
add_filter( 'wp_mail_content_type', 'set_content_type' );
function set_content_type( $content_type ) {
return 'text/html';
}
Without they are sent in text/plain. But with or without, the emails never look like in the customizer.
@justarandomuser Please don’t post the same thing on multiple topics. If you find yourself wanting to do that, it’s best to just create a new discussion topic for better visibility. I’ve replied on your other topic.