How to setup static contact form to send email using php to mail email, when there are multiple domains in the droplets

November 28, 2019 141 views
Nginx PHP Email Ubuntu 18.04

Emails do not work when the user clicks on the send button. Is it because php/Postfix/ error or not installed?

1 Answer

Hello, @lixqpxil

I can’t give you specific instructions because I’m not familiar with the server configuration and etc. However I can give you some basic instructions in order to troubleshoot this.

Have you checked the PHP error logs for your sites to see if there is an error generated when you execute the send email script?

Did you made any changes to the postifx configuration after you’ve installed it? If you’re not sure that postfix was installed successfully, you can follow this tutorial:

Hope this helps!


by Justin Ellingwood
by Hanif Jetha
Postfix is a popular open-source Mail Transfer Agent (MTA) that can be used to route and deliver email on a Linux system. It is estimated that around 25% of public mail servers on the internet run Postfix. In this guide, we'll teach you how to get up and running quickly using the Postfix mail server.
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!