Hi @maniwp001,
Thanks for reaching out!
When you set up the WP Mail SMTP plugin, all your WordPress emails sent using the WP_Mail() function will be routed through the WP Mail SMTP configured mailer.
Not sure if your custom plugin is changing email headers. Could you please try forcing the “from email address” under the WP Mail SMTP -> Settings page and restest?
I hope this helps. Thanks!
Hi,
The “from email address” is already forced in Settings page.
I’ve also tried following snippet
add_filter('wp_mail_from', 'bv_get_from_email');
return wp_mail( $email , $subject , $text );
add_filter('wp_mail_from', 'bv_get_from_email');
return wp_mail( $email , $subject , $text );
The email gets sent by “bounce………@mandrillapp.com” instead of my domain email address.
It still did not work. What aim i missing?
Hi @maniwp001,
I missed your last response, and I apologize for that.
Were you able to resolve this issue? If not, what’s the mailer that you have configured on your WordPress site using the WP Mail SMTP plugin, and what’s your “from email address”?
Also, if you have multiple SMTP plugins activated on your site, you need to deactivate them.
Thanks!