By aubreypwd
Right now I am using the LEMP Application image for my droplet. Everything is great except that WordPress can’t send emails via wp_mail() or mail().
I’ve installed postfix and configured it as an Internet Site and supplied my primary domain name (and restarted, of course). Still, no email’s are being sent.
Please no suggestions to use SMTP, I need to be able to override the From: header as I am using Gravity Forms.
I also spun up a LAMP and WordPress droplet to test, same result.
Worried this may be a 25 port issue, but can’t wrap my head around the solution.
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!
Are there any errors in Postfix’s error log?
sudo tail /var/log/mail.err
Can you connect to port 25 on remote servers? What’s the output of:
nc -vz smtp.gmail.com 25
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.