SMTP

Version: 2.1.12

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

Connect SMTP with LogicHub

  1. Navigate to Automations > Integrations.
  2. Search for SMTP.
  3. Click Details, then the + icon. Enter the required information in the following fields.
    • Label: Enter a connection name.
    • 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.
    • Verify SSL: Select option to verify connecting server's SSL certificate (Default is Verify SSL Certificate).
    • Remote Agent: Run this integration using the LogicHub Remote Agent.
    • SMTP Server Name: Server name for your SMTP connection.
    • SMTP Server Port: Server port for your SMTP connection.
    • Authentication Type: Authentication type for your SMTP connection.
    • Use Encryption: Whether or not to use encryption.
    • Email Address: Email Address to send from.
    • Username: Username if different from Email Address.
    • Password: Password to log in with.
  4. After you've entered all the details, click Connect.

Actions for SMTP

Send Email

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

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 {"<lhub_id>":"<file_name>"}).

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.
{
  "cc": [],
  "has_error": false,
  "from": "[email protected]",
  "attachments": [],
  "recipients": [
    "[email protected]"
  ],
  "error": null,
  "date_sent": "2021-03-01 17:03:47 UTC",
  "msg": "email sent to [email protected]",
  "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

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.
{
  "cc": [],
  "has_error": false,
  "from": "[email protected]",
  "attachments": [],
  "recipients": [
    "[email protected]"
  ],
  "error": null,
  "date_sent": "2021-03-01 17:03:47 UTC",
  "msg": "email sent to [email protected]",
  "bcc": [],
}

Release Notes

  • 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.

Did this page help you?