WordPress mail() FROM address
I've got several servers set up with dozens of clients, most of which are running WordPress. Lately we've been having an issue with outbound mail. An example of this situation would be something like this:
example.com is hosted on server1.company.com with the cPanel username examp. The site has a Contact form that sends a notification to the site owner. They use an outside email provider. The form is configured to send from info@example.com and go to admin@example.com with a confirmation sent to the visitor's email address. A visitor fills out the form and clicks Submit. The email message is generated and tries to send. The FROM address in the message is examp@server1.company.com but the envelope says info@example.com.
Depending on the mail service, some providers are rejecting these emails based on the above mismatch, and if there are spam issues, the domain that ends up getting flagged is server1.company.com, not example.com. How do I configure WHM to use example.com (or whatever is each account's primary domain) as the sender domain rather than server1.company.com?
-
Hello, You'd need to setup the form to use SMTP authentication for sending email as opposed to the PHP mail function. Here's an example of a third-party WordPress plugin used for this purpose: Postman SMTP Mailer/Email Log Thank you. 0
Please sign in to leave a comment.
Comments
1 comment