Quantcast
Channel: Syed Jahanzaib – Personal Blog to Share Knowledge !
Viewing all articles
Browse latest Browse all 409

Howto send email from command via Windows using GMAIL account

$
0
0

Send Email from Windows via command prompt using GMAIL Account  :) ~

If you want to send email from windows using command prompt using gmail account, first down mailsend utility from following URL and extract it to any folder you like.

http://www.muquit.com/muquit/software/mailsend/mailsend1.16.exe.zip

Now to send email using command via your GMAIL account, use the below syntax. Remember to change the email addressees and password to match your account details.

mailsend.exe -to aacable@hotmail.com -from your-gmail-id@gmail.com  -ssl -smtp smtp.gmail.com -port 465 -sub "Testing Email via Windows cmd using GMAIL test %time%" -M "This is body text of Testing Email via Windows cmd using GMAIL. %date% %time% sending / zaib." +cc +bc -q -auth-plain -user "your-gmail-id" -pass "yourpass"

To send email with attachment, use the following

mailsend.exe -to aacable@hotmail.com -from your-gmail-id@gmail.com  -ssl -smtp smtp.gmail.com -port 465 -sub "Testing Email via Windows cmd using GMAIL test %time%" -M "This is body text of Testing Email via Windows cmd using GMAIL. %date% %time% sending / zaib." +cc +bc -q -auth-plain -user "your-gmail-id" -pass "yourpass" -attach "c:\test.txt"

It’s very handy and useful in many conditions. For example I used it to send daily tape backup log OR daily backup file to my email in the morning by scheduling it.

 

.

For more info, please read this details guide at
http://www.codeproject.com/Tips/418420/Send-email-from-command-line-using-GMail-account

.

Regard’s
Syed Jahnazaib


Filed under: Microsoft Related

Viewing all articles
Browse latest Browse all 409

Trending Articles