• Resolved alan

    (@f1alan)


    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)
  • Plugin Support Victoria Sakal

    (@sakalvictoria)

    Hi, @f1alan!

    Thanks for reaching out, and we’re sorry for the trouble.

    We’re checking into this and will update you as soon as we have more details.

    We appreciate your patience.

    Plugin Support Victoria Sakal

    (@sakalvictoria)

    Hi, @f1alan!

    Thank you for your patience.

    We can confirm that it’s a WP Mail Logging plugin issue. The issue occurs because some plugins use the wp_mail_content_type filter to set email content type instead of headers. So, the content type is available only during email sending requests. We’ll cover this case in the next plugin releases.

    Thank you for pointing this out to us.

    Kind regards.

    Thread Starter alan

    (@f1alan)

    Hi @sakalvictoria,

    That’s good to hear. Thanks for letting me know.

    I’m having this problem too and it’s stripping out the customer supplied email address in our contact form emails. The only way we can respond to customers by email is for admin to login to the website and view the “raw” email log, adding a significant burden to our sales team and delayed responses. Hope for fix soon.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.