Here is a response I got from WP Mail SMTP Support team for this issue. Sharing it here for other users:
———————————
Hello,
Thank you for contacting us!
We don’t currently have a built-in way to set headers within the Amazon SES mailer. However, if you’re willing this can be accomplished with a little custom code:
add_filter( ‘wp_mail_smtp_mailcatcher_pre_send_before’, function ( $mailcatcher ) {
$mailcatcher->addCustomHeader( ‘X-SES-CONFIGURATION-SET’, ‘conf-set-goes-here’ );
$mailcatcher->addCustomHeader( ‘X-SES-MESSAGE-TAGS’, ‘mes-tag-goes-here’ );
} );
Make sure to remove the text conf-set-goes-here and mes-tag-goes-here, then you can set your parameter values instead.
In case it helps, here’s a tutorial with the most common ways to add custom code like this: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/.
For the most beginner-friendly option in the guide above, I’d recommend using the Code Snippets plugin: https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/. This will protect your code from updates and keep it easy to manage right within your WordPress admin area.
I hope this helps!
-
This reply was modified 3 years, 1 month ago by recozilla.