11.1.75     <MAIL>(Not supported by WinCE Edition(WebView &WebLink ))

Description:   SMTP client package for sending text email via a local or remote SMTP-compliant mail server.

Syntax:         <MAIL>HOST=mailserver</MAIL>
<MAIL>PORT=
25</MAIL>
<MAIL>SUBJECT=
PUT SUBJECT HERE</MAIL>
<MAIL>FROM=
valid email address</MAIL>
<MAIL>TO=
recipient@compay.com</MAIL>
<MAIL>TO_ADD=
anotherrecipient@company.com</MAIL>
<MAIL>CC=
anotherrecipient@company.com</MAIL>
<MAIL>CC_ADD=
anotherrecipient@company.com</MAIL>
<MAIL>BCC=
anotherrecipient@company.com</MAIL>
<MAIL>BCC_ADD=
recipient@company.com</MAIL>
<MAIL>BODY=
Put message here. </MAIL>
<MAIL>BODY_ADD=
Another Line for message. </MAIL>
<MAIL>SEND</MAIL>

Argument:     Host name, Port, Subject, To, From, CC, BCC, Body, Send,
</MAIL> not needed for Keymacro file

See Also:       </MAIL>

 

Examples:      Sample Keymacro File
<MAIL>host=Advantech.com
<MAIL>from=Advantech WebAccess/SCADA SCADA Node
<MAIL>subject=Alarm notification.
<MAIL>to=info@Advantech.com
<MAIL>to_add=support@Advantech.com
<MAIL>body=First \"a\" Line.
<MAIL>body_add=First Line also.\n
<MAIL>body_add=Second Line.\n\n
<MAIL>body_add=Tom
<MAIL>send

Examples:      Sample series of Pushbutton Keymacros
<MAIL>HOST=Advantech.com</MAIL>
<MAIL>FROM=Advantech WebAccess/SCADA SCADA Node</MAIL>
<MAIL>SUBJECt=Alarm notification. </MAIL>
<MAIL>TO=info@Advantech.com</MAIL>
<MAIL>TO_ADD=support@Advantech.com</MAIL>
<MAIL>BODY=First Line. </MAIL>
<MAIL>BODY_ADD=First Line also. </MAIL>
<MAIL>BODY_ADD=Second Line. </MAIL>
<MAIL>BODY_ADD=Tom </MAIL>
<MAIL>SEND </MAIL>

The <MAIL> keymacro (and the equivalent Action Command in scripts) provide an easy interface for sending email messages a Advantech WebAccess/SCADA SCADA Node via a network conversation with a local or remote SMTP-compliant mail server. This package was written to be as portable as possible and is known to work on Windows systems. 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 Advantech WebAccess/SCADA SCADA node will send an email through an existing SMTP compatible mail server. By default, this is the Project Node with mail.Advantech.com configured as the Smart Host.  If the Project 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 Project Node (or SCADA Node) must be added to the list of IP Addresses  that can "relay" email through a Smart Host mail server.

By default, Advantech WebAccess/SCADA will send mail from the Project Node (which has an SMTP Server as part of Internet Services Manager) to the mail.Advantech.com Smart Host. During software installation on the Project Node, the user can specify a Smart Host that is usually the company's email server. 

An SMTP Server option in Internet Information Server (IIS) must be installed on the Project Node to use the default settings.  If SMTP server is not installed on the project node, you will have to use the <MAIL>HOST=yourSMTPserver before each <MAIL>SEND command.