Cannot Send Mail

Hey all,

Last night I set up a Droplet with the LAMP stack on Ubuntu 12.04. My sites are all moved over and everything seems to be working fine, with the exception of mail. My contact form no longer sends mail. I did some Googling and all of the threads I’ve found on the Digital Ocean board haven’t worked. I don’t need to receive mail, simply send it, so hopefully someone can lend a hand. I’ve tried postfix, sendmail, exim4, and nothing works.

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

What’s the contact form invoking to send mail? are you missing a PHP module?

The issue for me was that the sendmail path needs to be set in the php.ini file.

Check the mail log. <br> <br> <br>tail -f /etc/mail.err <br> <br> <br>I’m having the same issue and it’s because the www-data user doesn’t have permission to send email. Haven’t found the solution yet.