MAIL send

Description:   Sends text email, built using series of MAIL Action Commands,  via a local or remote SMTP-compliant mail server.  Clears all MAIL buffers


Tcl:             MAIL SEND

JScript:        MAIL("SEND");              

VB Script:     MAIL "SEND"


Argument:     "SEND" 

See Also:       MAIL

Examples:      MAIL SEND

The MAIL "send" command (and the equivalent Keymacro commands) sends an email built using the related MAIL commands:  host, port, to, from, subject, to, cc, bcc, and body. 

If no HOST is specified, the Email is sent from the Outgoing SMTP Email Server specified in SCADA Node properties, even if from a script on a Web Client.

This MAIL package provides only the text transport mechanism -- no provisions have been made for attachments or other fancier email features.  SMTP is supported.  MIME and attachments are not supported. MAIL attempts to be as RFC-compliant as possible.

The MAIL commands put a simple interface around mail sending, requiring options for specifying the host (mail server), port, From, TO and SUBJECT.  A Body option specifies the body of the message directly. One or more recipient email addresses should be specified using the to, cc, or bcc  respective list-oriented options.

The WebAccess SCADA node will send an email through an existing SMTP compatible mail server.  If the SCADA node is part of a domain, sending email to other users within the same domain does not usually require any changes to the mail server (the host).  If mail must be sent outside of the mail server's domain, then the SCADA Node must be added to the list of IP Addresses  that can "relay" mail through the mail server.