I can't despite my many efforst find a means to send an email from the command line on my Win2012r2 server
The idea is to use the Task Scheduler to send these but whatever utility I try ex. sendemail, switch-mail, mailsend
it just fails, here is the output from mailsend:
Winsock error: A connection attempt failed because the connected party di
d not properly respond after a period of time, or established connection failed
because connected host has failed to respond.
Error: Connection is closed unexpectedly
Could not send mail
this is my syntax:
mailsend.exe -t firstname.lastname@example.org -f email@example.com -starttls -port 465 -auth -smtp smtp.gmail.com -sub test -M test -user firstname.lastname@example.org -pass xxxxxxxxxxxxxxxxx
I tried disabling the anti-virus: same result
Thunderbird which is on this computer communicates quite successfully with Gmail.