Report this

What is the reason for this report?

I am lost php mail doesn't work anymore

Posted on May 6, 2015

So i created a server (ubuntu) with nginx on it link to the tutorial i followed. I have multiple server blocks for my domain names and everything works perfect. But now i want to sent mail trough a php contact form but i get a 504 error (the code works I tested it on my hostgator server). So I looked if i had Postfix by sudo apt-get install mailutils and it says: mailutils is already the newest version.

So what should i do now



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!

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.

A 504 error indicates a timeout. This could be due to a number of causes. I would recommend checking that you can reach another mail server from your droplet and if you cannot, open a ticket with our support team so they can investigate.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.