This is a small command line utility that will send a plain text e-mail. There is nothing fancy about it – you can’t attach any files, you can’t have html formatting, you can’t send CC or BCC. Neither can you add reminders, flag for importance, request receipt or any other fancy stuff like you can do from MS Outlook.
You can specify the sender’s address, the receiver’s address, the mail server, the subject of the e-mail, and the message itself.
There are some restrictions as well. You can not start any word in either subject or message with a slash. In other words, this message is not allowed: You can find it in the /binary directory. You can, however, use it inside a word, which means that URL are fine: http://www.kmyhre.com
(Technically, the reason is simple. Any occurances of a space followed by a slash, is interpreted as a switch. See list of switches below.)
So, what’s the point of such a simple program? Basically, it is for scripting. I wanted an easy way to send e-mails, without having to use VBscript. I just wanted the possibility to send a message by e-mail when certain events occured.
Dowload link: clmail.zip
Note: It requires Microsoft .NET Framework v2.0
(The framework is free, and available for download. Most likely it is already installed on your computer.)
Mandatory switches are:
/from <sender’s e-mail address>
/to <receiver’s e-mail address>
/smtp <smtp server address>
/subject <your subject goes here>
/message <you message goes here>
Optional switches are:
/quiet (will not display “send successfull” message”)
/debug (will display how it interprets all the command line arguments.)
(it will still try to send the e-mail!)
Feel free to leave any comments, feature requests, bug reports etc. below.