Currently, I have a Ubuntu 16.04 LEMP stack DO droplet hosting a WordPress site, I’ll call the primary domain xyz.com. Email is sent via a contact form on the site. The primary domain’s email is being handled by a different server (not managed by me).
I’m having an issue sending emails via the PHP’s mail() function which WordPress utilizes. I’m able to send email to any domain (gmail.com, hotmail.com, etc.), however I’m unable to on the primary domain (xyz.com).
I think it has to do with the primary domain trying to stay internal since it’s the same domain name at both locations, and it believes xyz.com is local to itself and won’t send it out.
I haven’t been able to find a solution for this issue. I feel like it’s a common issue, but my Google search skills have been lacking.
Any help would be much appreciated!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @pixelment
Unless you’re running a MTA like Postfix or Exim, then it shouldn’t be a problem.
Another solution I would recommend that you have a look at SparkPost as an alternative way of sending mails via WordPress. https://www.sparkpost.com https://wordpress.org/plugins/sparkpost/
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.