C:\>c:\scripts\sendEmail.exe -f gmailUserAddress -t gmailUserAddress -u "from sendEmail using TLS" -m "Just Testing" -s smtp.gmail.com:587 -o tls=yes -xu gmailUserAddress .com -xp gmailUserPasswordThis is handy if you are trying to monitor your event logs like I have posted before.
Thursday, June 28, 2012
Send Email using TLS from Windows scripting like VBS
The "CDO.Message" used in VBS does not work for TLS. So if no SSL or anonymous access is allowed within your protected network you will be forced to use an external command. Here is when the SendEmail Open Source Project will help. Just download the executable and you will be able to use it to send emails over TLS. Below is an example on how to use it with gmail TLS:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment