Report this

What is the reason for this report?

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

Posted on November 28, 2019

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



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.

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:

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-on-ubuntu-18-04

Hope this helps!

Regards, Alex

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.