/*-------------------------------------------------------------------
File........: smtpmail.p
Version.....: 5.8a - Aug 9, 2007
Description : Opens up an SMTP connection and sends an email message
to multiple recipients.
Input Param :
mailhub char - settable SMTP server name/IP address
optionally append :XX where X is a port number of the
SMTP server. 25 is default port.
EmailTo CHAR - list of email addresses separated by
semicolons or commas (All semicolons will
be replaced by commas so don't include stuff
like Smith, John) <me@myaddress.org>"My Name"
EmailFrom CHAR - email address of user originating the email,
the SMTP server should require that this user
is real. Format looks like:
<user>@<host>[;<descriptive name>]
Example:
foo@bar.com[;Mr. Foo Bar]
If you want Delivery or Read Receipts, add a chr(1) delimiter
to the end of the EmailFrom and then one or two comma delimted
logical strings (Yes or No) for Delivery and Read Receipt
respectivley.
Example:
"foo@bar.com;Mr. Foo Bar" + chr(1) + "yes,no"
will give a delivery receipt and no read receipt. These
PARAMETERs are strictly optional and not required.
Delivery and read receipts are always returned to the EmailFrom
address.
EmailCC CHAR - list of email addresses separated by
semicolons or commas (All semicolons will
be replaced by commas so don't include stuff
like Smith, John) <me@myaddress.org>"My Name"
[B]For BCC (blind copies) add a ^B to the end of the address.
Example: me@myaddress.org^B[/B]