Send component e-mail

Table of Contents

Description

Sends an email message to the specified email account.

For an encrypted connection (property "SSL authorization") the component uses the protocol StartTLS. This means that the connection is initially made on unsecured port 25 and then encrypted, unlike SSL where the connection is initially made on secured ports. This is why, in most cases, you should specify unprotected port 25 in the "Mail Server Port" property instead of 465.

Table 1. System Characteristics

Index

121

Short title

emailsend

Types of scenarios

All of them

Starter module

r_script_component_emailsend

Mode

Asynchronous

Icon

121

Branching pattern

Branching, closing

Properties

Table 2. Properties
Specification Description

Title: Protocol
Code: protoMode
Visibility: no
Default: SMTP

Mail sending protocol used.
Possible options:

  • SMTP (0)

Title: Server Address
Code: srvAddr
Visibility: no
Default: — 

Mail server address.

Title: Server Port
Code: srvPort
Visibility: no
Default: — 

Mail server port.

Name: SSL
Code: srvSSL
Visibility: no
Default: `None'

Mode switch SSL.

Title: Login
Code: srvLogin
Visibility: no
Default: — 

Login for authorization on the mail server.

Title: Password
Code: srvPass
Visibility: no
Default: — 

Password for authorization on the mail server.

Title: From
Code: from
Visibility: no
Default: — 

Argument with the sender of the email. Header From.

Title: To whom
Code: to
Visibility: no
Default: — 

Argument with the addressee of the email. Header To.

Title: Theme
Code: subject
Visibility: no
Default: — 

Argument with email subject. Header Subject.

Title: Text
Code: textbody
Visibility: no
Default: — 

An argument with the text representation of the email. It is added as one of the parts of the MIME content of the mail.

Name: HTML
Code: htmlbody
Visibility: no
Default: — 

An argument with the HTML representation of the email. It is added as one of the parts of the MIME content of the email.

Title: Attach File 1
Code: attach1
Visibility: no
Default: — 

Attachment.
It is added as one part of the MIME content in binary format.

Can be selected in one of the modes:

  • a static file attached to the script (loaded from the Script Editor application or via the API);

  • argument-formed path, which must include one of the filecategories.

Title: Attach File 2
Code: attach2
Visibility: yes
Default: — 

Attachment 2.
It is added as one part of the MIME content in binary format.

Title: Attach File 3
Code: attach3
Visibility: yes
Default: — 

Attachment 3.
It is added as one part of the MIME content in binary format.

Title: Attach File 4
Code: attach4
Visibility: yes
Default: — 

Attachment 4.
It is added as one part of the MIME content in binary format.

Title: Attach File 5
Code: attach5
Visibility: yes
Default: — 

Attachment 5.
It is added as one part of the MIME content in binary format.

Title: Mode
Code: mode
Visibility: no
Default: `Synchronous'

Possible values:

  • Synchronous (sync, 0) - Waiting for sending to complete.

  • Asynchronous (async, 1) - Passing control to the next component immediately after the sending process starts.

Title: Sending Result
Code: output
Visibility: no
Default: — 

Variable to save the result of sending an email.

Title: Transition
Code: transfer
Visibility: no
Default: — 

The component to which control is passed on successful completion of the operation.

Title: Transition, Error
Code: transferError
Visibility: no
Default: — 

The component to which control is passed when an error occurs.

See also