I am trying to use sendemail to test emails on my droplet on digital ocean and it is not working.
I do the same command line on my machine and in other server hosted in linode. Both works.
$ sendemail -f firstname.lastname@example.org -t email@example.com -u subject -m "message" -s smtp.gmail.com:587 -o tls=yes -xu firstname.lastname@example.org -xp 'password'
Mar 14 20:18:10 digitalocean sendemail: ERROR => Timeout while connecting to smtp.gmail.com:587 There was no response after 60 seconds.
Can you help me?
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.