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

Posted November 28, 2019 2.1k views
NginxPHPEmailUbuntu 18.04

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

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.

Submit an Answer
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.