SMTP

Version: 3.0.0

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 NameDescriptionRequired
Subject Column nameA column containing the subject title for emails.Required
Body Column nameA column containing the body for outbound emails.Required
Column containing the email address for recipientsA column containing the email addresses to send an email to.Required
Column containing the from e-mail addressA 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
TypeSelect type of email body (Default is Plain Text).Optional
Cc on Outbound Email Column NameColumn containing email addresses to attach as a cc on an outbound email.Optional
Bcc on Outbound Email Column NameColumn containing email addresses to attach as a bcc on an outbound email.Optional
File AttachmentColumn 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 ExtensionIf 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 NameDescriptionRequired
SubjectSubject title for emails.Required
BodyBody for outbound emails.Required
Email address for recipientsEmail addresses to send an email to.Required
From E-mail addressE-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
TypeSelect type of email body (Default is Plain Text).Optional
Cc on Outbound EmailEmail addresses to attach as a cc on an outbound email.Optional
Bcc on Outbound EmailEmail 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

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

© 2017-2021 LogicHub®. All Rights Reserved.