Some resent HTML emails sent as plain text
-
We are using v1.12.0 of your plugin and attempted to resend an email that had failed. The original email was in HTML format so that is what we expected the resent version to be in but it was sent as plain text so all we saw was the raw HTML code. Some emails are correctly resent as HTML.
I have added the following workaround to wp-mail-logging\src\WPML_Email_Dispatcher.php to force HTML:
public function dispatch( $to, $subject, $message, $headers = '', $attachments = array() )
{
array_push($headers, 'Content-Type: text/html');
array_push($headers, 'charset=UTF-8');
wp_mail( $to, $subject, $message, $headers, $attachments);
}
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.