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.

Opt In Image
Free Weekly PCMech Newsletter
Almost 500 Issues So Far, Received By Thousands Every Week.

The PCMech.com weekly newsletter has been running strong for over 8 years. Sign up to get tech news, updates and exclusive content - right in your inbox. Also get (several) free gifts.

Comments

  1. 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.

  2. http://learnersreference.com says:

    this is a great trick..simple and interesting

Leave a Reply

PCMech Insider Cover Images - Subscribe To Get Your Copies!
Learn More
Tech Information you can use, sent to your inbox each and every week. Check out PCMech's digital e-zine...