Document toolboxDocument toolbox

SMTP

Simple Mail Transfer Protocol (SMTP) is a standard communication protocol for sending email messages on business networks and the Internet.

Connect SMTP with Devo SOAR

  1. Navigate to Automations > Integrations.

  2. Search for SMTP.

  3. Click Details, then the + icon. Enter the required information in the following fields.

  4. Label: Enter a connection name.

  5. Reference Values: Define variables here to templatize integration connections and actions. For example, you can use https://www.{{hostname}}.com where, hostname is a variable defined in this input. For more information on how to add data, see 'Add Data' Input Type for Integrations.

  6. Verify SSL: Select option to verify connecting server's SSL certificate (Default is Verify SSL Certificate).

  7. Remote Agent: Run this integration using the Devo SOAR Remote Agent.

  8. SMTP Server Name: Server name for your SMTP connection.

  9. SMTP Server Port: Server port for your SMTP connection.

  10. Authentication Type: Authentication type for your SMTP connection.

  11. Use Encryption: Whether or not to use encryption.

  12. Email Address: Email Address to send from.

  13. Username: Username if different from Email Address.

  14. Password: Password to log in with.

  15. After you've entered all the details, click Connect.

Actions for SMTP

Send Email (Deprecated)

Sends an email to a recipient using SMTP

Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

Input Name

Description

Required

Input Name

Description

Required

Subject Column name

A column containing the subject title for emails.

Required

Body Column name

A column containing the body for outbound emails.

Required

Column containing the email address for recipients

A column containing the email addresses to send an email to.

Required

Column containing the from e-mail address

A column containing the e-mail addresses as sender to send an e-mail to. From email address should have "Send As" permission of mailbox of connections user.

 

For more details please visit here.

Optional

 

Type

Select type of email body (Default is Plain Text).

Optional

Cc on Outbound Email Column Name

Column containing email addresses to attach as a cc on an outbound email.

Optional

Bcc on Outbound Email Column Name

Column containing email addresses to attach as a bcc on an outbound email.

Optional

File Attachment

Column containing one or more file IDs to attachment. (Can be a comma separated string of lhub_file_id values or a json dict in the format of {"\":"\"}).

Optional

Attachment File Extension

If no file name is provided, add this extension to the attached files.

Optional

Output

A JSON object containing multiple rows of result:

  • has_error: True/False

  • error: message/null

  • result: Success/Failure message.

``` {json}{ "cc": [], "has_error": false, "from": "user2@lhub.net", "attachments": [], "recipients": [ "user2@lhub.net" ], "error": null, "date_sent": "2021-03-01 17:03:47 UTC", "msg": "email sent to user2@lhub.net", "bcc": [], }

## Send Email Sends an e-mail to a recipient using SMTP ### Input Field Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection. | Input Name | Description | Required | | :------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------- | | Subject | [Jinja-templated](doc:jinja-template) text containing the subject title for e-mails | Required | | Body | [Jinja-templated](doc:jinja-template) text containing the body for outbound e-mails | Required | | Recipients To | [Jinja-templated](doc:jinja-template) text containing the e-mail addresses to send an e-mail to | Required | | Recipient From | [Jinja-templated](doc:jinja-template) text containing the e-mail addresses as sender to send an e-mail to | Optional | | Type | Select type of email body (Default is Plain Text) | Optional | | CC on outbound e-mail | [Jinja-templated](doc:jinja-template) text containing the e-mail addresses to attach as cc on an outbound e-mail | Optional | | BCC on outbound e-mail | [Jinja-templated](doc:jinja-template) text containing the e-mail addresses to attach as bcc on an outbound e-mail | Optional | | File Attachment | [Jinja-templated](doc:jinja-template) text containing the one or more file IDs to attachment. (Can be a comma separated string of lhub_file_id values or a json dict in the format of {"\<lhub_id>":"\<file_name>"}) | Optional | | Attachment File Extension | [Jinja-templated](doc:jinja-template) text, If no file name is provided, add this extension to attached files. | Optional | | Reply-To | [Jinja-templated](doc:jinja-template) text containing the reply-to header for the mail. | Optional | ### Output JSON containing the following items: ```JSON { "cc": [], "has_error": false, "from": "user2@lhub.net", "attachments": [], "recipients": [ "user2@lhub.net" ], "error": null, "date_sent": "2021-03-01 17:03:47 UTC", "msg": "email sent to user2@lhub.net", "bcc": [], }

Send a Static Email If the Table is Empty

Sends an email to a recipient with static input if the table is empty.

Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

Input Name

Description

Required

Input Name

Description

Required

Subject

Subject title for emails.

Required

Body

Body for outbound emails.

Required

Email address for recipients

Email addresses to send an email to.

Required

From E-mail address

E-mail addresses as sender to send an e-mail to. From email address should have "Send As" permission of mailbox of connections user

 

For more details please visit here.

Optional

 

Type

Select type of email body (Default is Plain Text).

Optional

Cc on Outbound Email

Email addresses to attach as a cc on an outbound email.

Optional

Bcc on Outbound Email

Email addresses to attach as a bcc on an outbound email.

Optional

Output

A JSON object containing multiple rows of result:

  • has_error: True/False

  • error: message/null

  • result: Success/Failure message.

{json}{ "cc": [], "has_error": false, "from": "user2@lhub.net", "attachments": [], "recipients": [ "user2@lhub.net" ], "error": null, "date_sent": "2021-03-01 17:03:47 UTC", "msg": "email sent to user2@lhub.net", "bcc": [], }

Release Notes

  • v3.1.3 - Deprecated old Send Email action and added new action with jinja supported fields along with Reply-To optional field.

  • v3.0.0 - Updated architecture to support IO via filesystem

  • v2.1.12 - In Send Email action, when we have wrong file id in a row, result for that row was not showing up. We have fixed this now.