Link to home
Start Free TrialLog in
Avatar of E=mc2
E=mc2Flag for Canada

asked on

VBS script and Batch script needed to send gmail email

I would like to see a sample VBS and Batch script that will send from a gmail account using port 587, with an attachment.
ASKER CERTIFIED SOLUTION
Avatar of J0rtIT
J0rtIT
Flag of Venezuela, Bolivarian Republic of image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bill Prew
Bill Prew

In VBS we typically do this using CDO.  But CDO does not support TLS (587), only SSL (465), so that is typically what is used for sending via GMail SMTP server.  If you are interested in a 465 VBS example let me know and I will post...

From a BAT script BLAT is often the tool of choice...  http://www.blat.net/


»bp