User Tools

Site Tools


en:actions:actionsendmail

Send e-mail

This action allows sending e-mails. It needs to connect to a mail server (SMTP).

Added in Actiona 3.9.0.

Standard parameters

Input Parameters

Server name

The name of the mail server (SMTP). Can be the one from your Internet Service Provider (ISP).

Secure connection

If checked the action will use a safe connection (encrypted) to the mail server

User name

The user name to use when connecting to the server

Password

The password to use when connecting to the server

Sender

The sender's e-mail address

Receivers

The receiver's e-mail addresses, separated with a comma. For example:

test@example.com
test@example.com,test2@example.com
Subject

The mail's subject

Content

The mail's content (be careful, the content has to be in text format, HTML is not supported)

Attachment

Input Parameters

Attachment name

The attachment name, if empty no attachment will be used

Attachment data

The attachment content. Can be raw data, for example the content of a binary file stored into a variable

Attachment content type

The attachment content type

  • Auto detect: the action will try to detect the content type
  • Binary: the attachment content is raw data
  • Text: the attachment content is text
  • Jpg image: the attachment content is a JPG image
  • Png image: the attachment content is a PNG image

Advanced parameters

Input Parameters

Carbon copy (Cc)

The carbon copy e-mail addresses, separated with a comma. For example:

test@example.com
test@example.com,test2@example.com
Blind carbon copy (Bcc)

The blind carbon copy e-mail addresses, separated with a comma. For example:

test@example.com
test@example.com,test2@example.com
Server port

The server port to use

Extra headers

The extra headers to add to the e-mail, one per line

Exceptions

Connection error

<BOOKMARK:connection_error>

This exception is thrown when a connection to the mail server cannot be established.

  • Default action: stop the script execution

Error while sending e-mail

<BOOKMARK:send_error>

This exception is thrown when an error occurs when sending the e-mail.

  • Default action: stop the script execution
en/actions/actionsendmail.txt · Last modified: 2021/02/13 11:23 by 127.0.0.1