By lukemaitland
Hello,
My website is running on an Ubuntu 16.04 powered droplet. I have a ‘reset password’ form on the site that sends out a new password to the users email address if they’ve forgotten it, however, I can’t seem to get it to work.
I’ve used the script in the past on traditional hosting providers but it just will not work on a droplet. No emails are getting sent out by the script.
Any advice would be greatly appriciated.
Thanks, Luke
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!
This is probably because you don’t have sendmail or a mailserver setup on your droplet.
What we’re doing is relaying mail via smtp through another server. You can use Yahoo or Gmail for this purpose although I think there might be sending limits.
See this for further information: https://www.digitalocean.com/community/tutorials/how-to-use-gmail-or-yahoo-with-php-mail-function
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.