Hi there
I followed the initial setup for Digital Ocean droplets (Ubuntu 13.04) and configuring an Nginx/PHP server - so far so good.
However, simple PHP contact forms can’t send mail. I’ve read about Sendmail, Postfix etc for this, but they seem like they require extensive troubleshooting and configuration just to be able to send email.
Is there a simple way to be able to PHP mail() without worrying about configuring domains, users, worrying about spam or troubleshooting yet another complex config?
Thanks.
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!
The easiest way would be using a service such as Mandrill (which offers a nice free tier). You could install sendmail but if you decide to go that route, you’ll need to set up SPF records to ensure that your mail doesn’t get marked as spam: <a href=“https://www.digitalocean.com/community/articles/how-to-use-an-spf-record-to-prevent-spoofing-improve-e-mail-reliability”>https://www.digitalocean.com/community/articles/how-to-use-an-spf-record-to-prevent-spoofing-improve-e-mail-reliability</a> <br> <br>You can install sendmail by running the following command: <br><pre>sudo apt-get install sendmail</pre>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.