|
Get SteelArrow!
|
|
|
|
<SAMAIL>
|
|
|
|
|
|
|
Secure Tag |
Return to Tag List |
|
The MAIL tag allows for the sending of SMTP mail messages. All address fields allow
a semi-colon or comma delimited list of email addresses.
|
|
Attributes:
TO | variable or literal string (recipient) |
FROM | variable or literal string (sender) |
CC | variable or literal string (other recipients) |
BCC | variable or literal string (other hidden recipients) |
SUBJECT | variable or literal string (message subject) |
SERVER | variable or literal string (server to use; not required) |
PORT | variable or literal string (server port to use; not required) |
ATTACHMENT | variable or literal string (';' delimited list of attachments - relative to executing script) |
HTML | "yes" or "no" (default is "no") |
TEXTCOPY | a plain text version of the message (used only when HTML='yes') |
|
|
|
The following is an example of MAIL;
|
|
<SASET NAME=to VALUE="test@tomahawktech.com">
<SAMAIL TO=to FROM="test@tomahawktech.com"
SUBJECT="Testing 123">
This is the message body. SAOUTPUT is assumed,
so variables can be output within this block using
the '#' character. As well, full flow control is
allowed within this block (ie. IF, SWITCH, WHILE, LOOP).
</SAMAIL>
in the above example you can change the FROM field so that alternate information can be displayed instead of the raw
email address. The following code demonstrates how to do so:
<SAMAIL TO=to FROM="MY COMPANY NAME " & Markup("test@tomahawktech.com")>
in this case "MY COMPANY NAME" will be displayed in the FROM field of the users email client.
** Attachments are relative to the executing script, but not above it (ie. the use of ".." is not allowed in the path).
|
|
|
|