August 1, 2007

Send mail from the command line

Ever need to send a one-line email from a DOS/CMD batch file? If your PC or Server has .Net 2 installed you can use this application.

It’s straightforward. Place the cmdSendmail.exe in your path or working directory and then type something like this at the command line:-

cmdSendMail you@emailtest.com~you@somewherelse.com~The Subject~The main text of the message~you@somewherelse.com~pass123~mail.somewherelse.com

Usage

cmdSemdMail {command string delimited by tilde}

To send an email create a single string with all the paramters of your message. Use the tilde (~) to delimit the paramters of your email.

cmdSendMail Download

Post a Comment