By EH
Hello, I have the 10$ Wordpress droplet. I had to reinstall sendmail and I cannot make it work again.
Problem: registration/pwd change/whatever that sends mail in WP hangs. Emails are delivered but the website hangs which makes users click the send button 10 million times.
Done so far:
After each change I restarted the sendmail service of course.
No effects so far.
My questions:
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!
Utilizing sendmail can be quite tricky on a droplet. To troubleshoot this further, you would want to review the output from a command utilizing the PHP mail function, such as:
php -r 'mail("TO_ADDRESS", "Testing PHP script", "Testing sending email via PHP", "From: YOUR_EMAIL\r\nReply-To: YOUR_EMAIL\r\nX-Mailer: PHP".phpversion());' && tail /var/log/mail.log
You would want to make sure to replace the TO_ADDRESS and YOUR_EMAIL parts with legitimate emails.
The output from such a command would show any PHP issues, as well as the logs the droplet for the mail service (in this case sendmail). If it is working locally, you would then want to inspect your scripts settings. If trying to send email via a remote service, like gmail, you would need to try and see if the remote mail service can provide you some feedback on the reason the issues are occurring.
Hope it helps!
Jason C. DigitalOcean Platform Support Lead
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.