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.
VB ScriptWindows BatchScripting Languages

Avatar of undefined
Last Comment
Bill Prew
ASKER CERTIFIED SOLUTION
Avatar of Jose Gabriel Ortega Castro
Jose Gabriel Ortega Castro
Flag of Venezuela, Bolivarian Republic of image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
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
VB Script
VB Script

VBScript (Visual Basic Scripting Edition) is an interpreted scripting language developed by Microsoft that is modeled on Visual Basic, but with some important differences. VBScript is commonly used for automating administrative and other tasks in Windows operating systems (by means of the Windows Script Host) and for server-side scripting in ASP web applications. It is also used for client-side scripting in Internet Explorer, specifically in intranet web applications.

39K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo