Report this

What is the reason for this report?

Very slow email delivery to users

Posted on May 29, 2016

I have a registration script that sends the user an email activation link upon successful user registration. From my localhost on my laptop, the email is sent instantly. However, on my Digital Ocean server running Ubuntu it takes 30 minutes to receive this email.

I have this in my code $mail->Host = “smtp.zoho.com”;

I assume this is a server issue. But what needs to be fixed or configured on my server?



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.

same issue here as well !! The settings from this https://www.digitalocean.com/community/tutorials/how-to-use-gmail-or-yahoo-with-php-mail-function worked fine for localhost! But in droplets it does’nt send the mail.

the error is “cannot connect to smtp.gmail.com, port 587: Connection timed out”

Please someone help me :(

It could be that DNS is taking a time to find your MX record. So, check your DNS servers.

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.