MAILTO - A simple SMTP mailer program.
by Mike Ruskai <thanny@netcarrier.com>

This program is for automating the sending of simple e-mails.  It was 
written to fill a specific need, and is now being released, with a very 
slight amount of added functionality, so that anyone else who has a similar 
need may see said need fulfilled.

Usage:  mailto <options>

Options:

/s<smtp server> - SMTP server to use
/f<from address> - from e-mail address
/t<to address> - to e-mail address
/d<filename> - file containing mail data to send
/u<filename> - file containing list of addresses
/nd - do not generate Date header line

Ex. mailto /ssmtp.myisp.com /fme@myisp.com /tyou@yourisp.com /dmsg.txt

You can skip the /s parameter by setting a SMTPHOST environment variable to 
the hostname of your SMTP server.

The from and to addresses must be unembellished.  These are used for 
message routing.  The formatted display (with name in quotes and address in 
brackets, in most cases) is written as headers in the message body (see 
example below).  The list of addresses should be plain text, with one 
unembellished address per line (use Cc,Bcc, or additional To header fields 
if you want formatted addresses).

The data file must contain all desired header information (e.g. From, To, 
Subject, etc.).

A simple mail data file:
-----
From: "Me" <myaddress@myisp.com>
To: "You" <youraddress@yourisp.com>
Subject: Testing

This is the message body
-----

An automatically generated Date header is prepended to the message (with 
the current date and time) unless you use the /nd option (in which case you 
should supply your own Date header).

This program may be distributed and modified freely.  No modification may 
be sold, and credit should be given for the original work.
