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

Syntax:         <MAIL>SEND</MAIL>

Argument:     none
</MAIL> not needed for Keymacro file

See Also:       </MAIL>


Examples:      Sample Keymacro File

<MAIL>from=WebAccess SCADA Node
<MAIL>subject=Alarm notification.
<MAIL>body=First \"a\" Line.
<MAIL>body_add=First Line also.\n
<MAIL>body_add=Second Line.\n\n

Examples:      Sample series of Pushbutton Keymacros
<MAIL>SUBJECt=Alarm notification. </MAIL>
<MAIL>BODY=First Line. </MAIL>
<MAIL>BODY_ADD=First Line also. </MAIL>
<MAIL>BODY_ADD=Second Line. </MAIL>


The <MAIL>SEND keymacro (and the equivalent Action Command in scripts) sends an email built using the related <MAIL> keymacros (HOST, PORT, TO, FROM, SUBJECT, TO, CC, BCC, BODY).  Email is sent from the SCADA Node, even if from a pushbutton 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> keymacros attempt to be as RFC-compliant as possible.

The <MAIL> keymacro 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.   By default, WebAccess will send mail from the Outgoing SMTP Server configured in SCADA Node Properties. Using the <MAIL>HOST command allows you to specify another smtp server than the default.