304
6620-3201
22.1.3 Body Section
The body section may include any text. This text is parsed for any function calls that may be present.
Function calls must be enclosed between “<%” and “%>”. These sequences are substituted by text
resulting from the function call. The following functions may be used:
Function Description
TimeSmtp();
Inserts the unit’s date and time.
serial_number();
Inserts the unit’s serial number
Smtpip();
Inserts the IP address of the unit as seen by the SMTP server during
transmission
email_event()
Inserts a formatted description of the event that caused the email
transmission.
Smtpid()
Inserts the unit ID for this device as con
fi
gured by the “unit identity”
fi
eld in
the
Confi gure
>
General
web page, or the
cmd 0 unitid
text command.
pppip(“instance”);
Inserts the IP address for a speci
fi
c PPP instance, where instance is the
PPP instance number.
The following are examples of email templates.
1)
z
FROM: MyRoute
r
SUBJECT: Remote Confi guratio
n
Time: <% timeSmtp(); %
>
Serial Number: <% serial_number(); %
>
Req: CFG_R
Q
IP Address: <% smtpip(); %
>
PPP 0 IP address: <% pppip( “0” ); %
>
2)
TO: [email protected], [email protected]: MyRouterSUBJECT: automatic email
MIME-Version: 1.0 Unit: <% smtpid() %>Event: <% email_event(); %>This event
had suffi cient priority to cause the transmission of thisemail. Please check
the attached logs and review.