User Tools

Site Tools


en:actions:actionsendmail

Differences

This shows you the differences between two versions of the page.


Previous revision
en:actions:actionsendmail [2021/02/13 11:23] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Send e-mail ======
  
 +This action allows sending e-mails. It needs to connect to a mail server (SMTP).
 +
 +//Added in Actiona **[[en:changelog#v390|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:
 +<code>test@example.com</code>
 +<code>test@example.com,test2@example.com</code>
 +== 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:
 +<code>test@example.com</code>
 +<code>test@example.com,test2@example.com</code>
 +== Blind carbon copy (Bcc) ==
 +The blind carbon copy e-mail addresses, separated with a comma. For example:
 +<code>test@example.com</code>
 +<code>test@example.com,test2@example.com</code>
 +== Server port ==
 +The server port to use
 +== Extra headers ==
 +The extra headers to add to the e-mail, one per line
 +
 +===== Exceptions =====
 +
 +  * [[en:actions:exceptions#Bad parameter|Bad parameter]]
 +  * [[en:actions:exceptions#Code error|Code error]]
 +  * [[en:actions:exceptions#timeout|Timeout]]
 +  * [[en:actions:actionsendmail#connection_error|Connection error]]
 +  * [[en:actions:actionsendmail#send_error|Error while sending e-mail]]
 +
 +==== 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