Very slow email delivery to users
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?
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.