Saturday 19 January 2013

Howto send email from command via Windows using GMAIL account

Post : Howto send email from command via Windows using GMAIL account
URL : http://aacable.wordpress.com/2013/01/10/howto-send-email-from-command-via-windows-using-gmail-account/
Posted : January 10, 2013 at 10:37 AM
Author : Syed Jahanzaib / Pinochio~:)
Tags : email from command, mailsend, send email via command in windows
Categories : Microsoft Related
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 (http://www.muquit.com/muquit/software/mailsend/mailsend1.16.exe.zip extract it to any folder you like.)
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 (http://www.codeproject.com/Tips/418420/Send-email-from-command-line-using-GMail-account)
.
















No comments:

Post a Comment