Question

Can't send email in droplet with nginx server

I have a contact form in node js application when user submit a form the email will send to Gmail account.i’m using nodemailer to send emails from this application. this is working completely fine in localhost, but in the live server the does not send and I never see any error message.

  • I’m using droplet with nginx server

Please help me to find the solution

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.

Since a long while, DO is blocking port 25 for email traffic. This, so email servers can’t use your VM as a direct mail relay. You can use port 587 & 465 for mailservers as well.

If this isn’t the case, please post some more information like;

  • Logs
  • Configurations
  • Errors (which you said isn’t there, but there should always be something, somewhere)

Hope this helps you