Question

Unable to send notification by mail via SMTP on DigitalOcean droplet

I’m using Laravel 5.8 and I sending emails via Laravel notifications. I can send email from localhost, but I am unable to do that from DigitalOcean droplet.

My DNS records: http://prntscr.com/o6jrrq

Actual exception: https://hastebin.com/gaqudoguxe.cpp

cache:clear did not nothing.

Subscribe
Share

Submit an 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.

Hello,

Seems like you are using incorect SMTP login details and your Laravel application is failing to authenticate. You need to make sure that you add the correct SMTP login details in your .env file.

At the moment I can see that you are using ‘mymail@gmail.com’ as username.

Hope that this helps!

Regards, Bobby