Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The MAIL_MESSAGE object sends events presented in the table.   Procedure is started when the corresponding event appears.

...

occurs.

Event

Description

“SEND

SEND_

ERROR”

ERROR

Error of message

Message sending error

“SENT”

SENT

Message is sent

Format of operator to describe actions with mail message is following:

...

...

DoReact("MAIL_MESSAGE","_id_","_command_" [,"_parameters_"]);

List of commands and parameters for the the MAIL_MESSAGE object is given in the table:

Command

command description

Parameters

Description

"SETUP"

settings for mail message

from<>

Source

Sender's address

to<>

Destination

Recipient's address

cc<>

Copies

subject<>

Message subject

body<>

Message body

attachments<>

Attachments. If several files are attached, their addresses are separated with a semicolon

separated

flags<>

Flags

name<>

Object name

pack<>

Way

Method of attachments packing

is_body_html<>Specifies if HTML markup
is to
must be applied when sending. Possible values: 1 or 0

inline<>

Specifies if attachments are only shown in the message text
text
(value of 1) or both in the text and in the "Attachments" section (value of 0)

"SEND"

send mail message

-

-

"SEND_RAW"
send
e-mail
email with parameterssame as for the SETUP command
see
see Examples of scripts in the JScript language

Properties of the the MAIL_MESSAGE object are shown in the table.

Properties of the MAIL_MESSAGE object

Description

ID<>

Object ID

PARENT_ID<>

Parent object ID

Example of using reactions of the MAIL_MESSAGE object.

Send message with image from video camera when it switches to alarm state while motion detection triggering.

...