By brewpixels
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!
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.
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.