I'm trying to insert employee name and email address fields into the From input for an email that my form generates. I'm using WP Mail SMTP to send emails through my hosting provider. It seems to be overriding Formidable and all emails are originating from admin@mysite.com. Is there a way to stop that?
Please login or Register to submit your answer
The reason I added WP Mail SMTP is to change the User Registration and Account Activation emails. Is there any PHP code for changing the name and email for just those two emails that I could put in my functions.php file? Any help would be greatly appreciated.
Shouldn't this be a question for WP Mail SMTP support?
<p>Sorry, I was not clear. I want to remove WP Mail SMTP and just add some code to change the name and email for specific system generated emails instead of having a plugin.</p>
Try this https://templ.io/blog/change-email-sender-address-and-name-in-wordpress/
I was going to suggest that as well, however, Chris is looking for something on a per-email basis, which is something I've not done.