This small VBScript sends an email from your Gmail account when executed. It's primary use is to notify you whenever your computer is logged on, and display a short message on screen to the user.
The code has been modified from CyberNet News so that command line arguments are not required. Every variable is set by the user within the script file.
Be sure to enter your details in the Configuration section at the top of the script. Details include
- Name
- Sender's Gmail address
- Sender's Gmail password
- Recipient's email address
- Email subject
- Email body text
- Message dialog box title
- Message body text
- Download the script. Make sure the saved file has a
.vbsfile extention. - Configure the script with a text editor as per the Configuration instructions above.
- Place the script in a high-level location, e.g.
C:\scripts\. This means the script can run for all users. - Right-click and create a shortcut.
- Open the system Startup folder, located (for Windows 7) at
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup. - Place the shortcut in the Startup folder.
Your Gmail password is stored as plain text in this script. Anyone can view this if they view the source code. Use at your own risk.
Note that this script is only compatible with computers running a Windows operating system, and has only been tested on Windows 7.