I was working with Express and SendGrid to send email verification to my own Gmail. I tried on localhost it works perfectly. However, I did not receive any emails when I deploy and run on my droplet. Moreover, I did not receive any error messages. So I assume the program successfully sends the email but been blocked by some port. Therefore, I find this question https://www.digitalocean.com/community/questions/i-can-t-connect-to-any-port-25-i-ve-tried-yahoo-mail-server-so-i-can-t-send-mail-from-the-vps. I tried port 25 on my droplet it did not block. Any suggestions on why this is happening?
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!
Hi there @zhuxingyuan123,
By default for new accounts, port 25 is closed. I would recommend trying with port 587 instead.
To test if port 587 is open you can run the following command:
- telnet portquiz.net 587
Let me know how it goes! Regards, Bobby
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.