Overview:
=========
SEND: Send SMTP mail from the NetWare command line.

To get help: LOAD SEND

Required parameters are: LOAD SEND <recipient> <mail server>

Module allows configurable return address, domain and various other
parameters. Files can be sent in the body of the message or attached
using MIME encoding.

Caveat: At this point in time, the mail server address must be a resolvable
        name (in SYS:ETC\HOSTS) and not an IP address. This is because the
        Novell implementation of gethostbyname() is broken or I'm not doing
        something right. I may get around to fixing it one day...

Comments/bug reports/etc to brettski@myrealbox.com

Thanks to Gabor Funk for the feedback and the Hungarian README translation.
Gabor Funk's email address: funk.gabor@hunetkft.hu

Thanks to Stephen Treger for suggesting the first/last bytes of a file feature.


Switches:
=========
  load send.nlm <recipient> <mail host> [options]
  -123      : Send only last 123 bytes of file.
  +123      : Send only first 123 bytes of file.
  -a        : Disable '<' and '>' around mail addresses.
  -b        : Send no message body at all.
  -c        : Suppress To: and From: in mail header.
  -ddomain  : Domain to put in HELO statement.
  -e        : Show sent data on stderr.
  -faddress : From address. Defaults to 'test@test'.
  -gaddress : Override FROM address in message header.
  -i        : Don't send date in header.
  -l        : Send bare LF - not CR LF as per spec.
  -mfile    : Use file as message text.
  -n        : Use MIME encoding for message.
  -p        : Don't report percentage of message file sent.
  -q        : Quiet mode - print nothing.
  -r        : Print SMTP responses to stderr.
  -ssubject : Subject of message. Defaults to 'Test Message'.
  -taddress : Override TO address in message header.
  -x        : Delete attached file after successful send.
  -yn       : Close screen after successful send. Optional 'n'
              will pause for 'n' seconds if errors then close.
  -z        : Turn on debugging.

NOTES:
  -t defaults to <recipient> if not specified.
  -g defaults to -f not specified.
  -c overrides -f and -t.
  -p, -r and -z override -q.
  -y defaults to 0 (pause indefinitely).


Usage Example:
==============
load send to@somewhere.com mailhost.otherwhere.com -dfromhost.here.com \
  -fme@here.com -sLogFile -msys:etc\file.txt

Will send a message with the following attributes:
  To user:                     to@somewhere.com
  Via mail server:             mailhost.otherwhere.com
  Identifying this server as:  fromhost.here.com
  Using a from address of:     me@here.com
  With a subject of:           LogFile
  Attaching the file:          sys:etc\file.txt

Note that for this to work, mailhost.otherwhere.com and the appropriate IP
address must appear in SYS:ETC\HOSTS as follows:
  192.168.0.1                  mailhost.otherwhere.com


Change Log:
===========
05-Dec-2002: Fixed a bug where the first line of an attached file would get
  v1.12      munged because I wasn't putting a blank line between the email
             header and the file itself.
             Updated the NLM header to correctly report the version number.
31-May-2004: Added feature to email either the first 'n' or last 'n' bytes
  v1.13      of the requested file. If there aren't that many bytes in the
	     file then you get all of it.
02-May-2005: Now sends date as part of email header by default.
  v1.14      Optionally encodes body of messages using MIME.
             Optionally deletes target file after successful send.
18-Sep-2005: Added -y parameter to automatically close screen after
  v1.15      successful send.
15-Oct-2007: Made the date field RFC compliant in a very lazy way.
  v1.16      Released the source code into the wild. Bear in mind I wrote
             this many years ago when I knew nothing. I only know a litle
             more now but the code is pretty messy...
