Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

WordPress mail() FROM address

Discussion in 'E-mail Discussion' started by jmartinmds, Jul 27, 2017.

  1. jmartinmds

    jmartinmds Member

    Jul 22, 2016
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    DataCenter Provider
    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: is hosted on 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 and go to 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 but the envelope says

    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, not How do I configure WHM to use (or whatever is each account's primary domain) as the sender domain rather than
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice