I'm having Wordpress-Form-Manager plugin to create forms.
I'm using Wp-Mail-Smtp plugin to send smtp emails from wordpress.
I've setup the smtp(gmail) details inside the plugin settings page, and i tested the settings from the form given to check whether i receive the email.
Testing email successfully received with the Return-Path as my gmail username,
But when i submit a form generated, the return-path is [email protected] in the email that is received. No matter what i change the code manually or try with someother plugin nothing works!!
Solutions Tried :
- Set manually $phpmailer->Sender name in functions.php page and add action to phpmailer_init
- Add the same into pluggable.php inside wp_mail() function.
- Use email-return-path-fix plugin
- try adding the above plugin code directly into functions.php
None of the above worked, and also i googled so long from which i didnt came across anyone facing the same issue.
Most weird thing is, it works perfectly when i use "Send a Test Email" form below the settings page but it doesn't work from the forms in the website.
Kindly help me on setting the Return-Path same like my from address.