• Resolved koushikcodesigma

    (@koushikcodesigma)


    I’m using your plugin with Google mailer settings. I want to send a custom message ID through google mailer. How I can override that?

Viewing 1 replies (of 1 total)
  • Hi @koushikcodesigma,

    Currently, there’s no built-in option for that. If you’d to, this can be accomplished with a little custom code:

    add_filter('wp_mail_smtp_custom_options', function( $phpmailer ) {
        $phpmailer->MessageID = '';
        return $phpmailer;
    } );

    Please note that the message ID must be in the format “<id@domain>”, as defined in RFC5322 section 3.6.4 or it will be ignored. See https://tools.ietf.org/html/rfc5322#section-3.6.4

    In case it helps, here’s a tutorial on how to easily add custom codes in your site.

    I hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Override email message ID’ is closed to new replies.