beautypg.com

Email templates 23, Template structure 23.1 – Westermo MR Series User Manual

Page 453

background image

453

6622-3201

Web Interface and Command Line Reference Guide

www.westermo.com

Email Templates

23

One of the principal features provided by the event log function is the ability to configure the unit
to automatically generate and send an email alert message each time an event of a specified priority,
or higher, occurs. The format of the message is determined by the email template specified in the
Email Template parameter (normally EVENT.EML) in the Configure > Event Handler web page.

If the standard EVENT.EML template supplied with the unit is not suitable, you may create your
own template. An email template is simply a text file that defines the appearance and content of the
email messages generated by the event logger.

Template Structure

23.1

An email template consists of a header section followed by a body section. One or more blank lines
separate the two sections.

The Header Section

23.1.1

The header section MUST contain the following three fields:

To:

This field is used to specify at least one recipient’s email address. Multiple addresses may be
included and must be separated by a space, comma or semicolon character. For example:

To: [email protected], [email protected]; abc.def.co.uk

From:

The From: field is normally used to supply the email address of the sending unit but alternatively
you may enter a simple string. For example:

From: IR2140

Subject:

The Subject: field should contain a string describing the subject of the email message.

Other Fields

23.1.2

In addition to the mandatory fields described above, the header section of an email may also contain
one or more optional fields. Many such fields are defined in the relevant RFCs but there are some
fields that the unit handles a little differently as described below. The unit will insert other fields as
necessary if it is required to send attachments with the email

Reply To:

If the unit discovers that this field is not present in the email template, the unit will insert this
field into the header. The string used for this field is that configured by the smtp 0 reply_to text
command (or the Default Reply Address parameter in the Configure > SMTP web page). This
allows for different reply addresses, and allows a simple way of using the same (easily configura-
ble) reply address for all emails.

Date:

If this field is present in the header, the unit will insert the current date and time into the head-
er. The date and time are values local to the unit and do not contain any time zone information.

This manual is related to the following products: