Question

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

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


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.

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