Send Emails Through Gmail From The Command Line

A really nice feature of Gmail is that it allows you to send outgoing message through their servers with the sent messages showing up in your Gmail account. To leverage this functionality, one person has written a VB Script file which easily sends mail through Gmail using your account. This VB Script file can be invoked from the command line to accomplish a variety of tasks.

Here are a few uses I can think of off the top of my head:

  • Use a scheduled task to send you (or someone else) an email reminder (as an alternative to signing up for a service to do this).
  • Send email messages from inside of batch scripts.
  • Modify the script to hardcode the to, subject, message and attachment fields so you can send the configured message and attachment with a double-click or via the Run command.

Tools like this are incredibly useful as they do not require you to install anything and can be modified to use however you may need it.

Free eBook!

Like what you read?

If so, please join over 28,000 people who receive our exclusive weekly newsletter and computer tips, and get FREE COPIES of 5 eBooks we created, as our gift to you for subscribing. Just enter your name and email below:

Post A Comment Using Facebook

  • Eli

    This is a great little trick. I do this all the time on my linux system. I have weekly reminders set up, which is incredibly useful. Another cool use for something like this is to send an email or text without having to open up a browser or email client. This is much quicker if all you need to do is send an email, without needing all of the other functions of your email client.Yeah, google owns me too.

  • http://learnersreference.com

    this is a great trick..simple and interesting

What’s Your Preference?

Daily Alerts

Each day we send out a quick email to thousands of PCMECH readers to notify them of new posts. This email is just a short, plain email with titles and links to our latest posts. You can unsubscribe from this service at any time.

You can subscribe to it by leaving your email address in the following field and confirming your subscription when you get an email asking you to do so.

Enter your email address for
Daily Updates:

Weekly Newsletter

Running for over 6 years, the PCMECH weekly newsletter helps you keep tabs on the world of tech. Each issue includes news bits, an article, an exclusive rant as well as a download of the week. This newsletter is subscribed to by over 28,000 readers (many who also subscribe to the other option) - come join the community!

To subscribe to this weekly newsletter simply add your email address to the following field and then follow the confirmation prompts. You will be able to unsubscribe at any time.

Enter your email address for
Free Weekly Newsletter: