Send e-mails from the command prompt

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.