SMTP

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

Integration with LogicHub

Connecting with SMTP

To connect with SMTP following details are required:

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

Actions with SMTP

Send Email

Sends an email to a recipient using SMTP

Inputs to this Action:

  • Connection: Choose a connection that you have created.
  • Subject Column name: A column containing the subject title for emails.
  • Body Column name: A column containing the body for outbound emails.
  • Column containing the email address for recipients: A column containing the email addresses to send an email to.
  • Column containing the from e-mail address (Optional): 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
    • Type (Optional): Select type of email body (Default is Plain Text).
    • CC on outbound email Column Name(Optional): Column containing email addresses to attach as a cc on an outbound email.
    • BCC on outbound email Column Name(Optional): Column containing email addresses to attach as a bcc on an outbound email.
    • File Attachment(Optional): 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>"}).
    • Attachment File Extension(Optional): If no file name is provided, add this extension to the attached files.

Output of Action:
json containing following items:

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

Inputs to this Action:

  • Connection: Choose a connection that you have created.
  • Subject: Subject title for emails.
  • Body: Body for outbound emails.
  • Email address for recipients: Email addresses to send an email to.
  • From E-mail address (Optional): 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
  • Type (Optional): Select type of email body (Default is Plain Text).
  • CC on outbound email (Optional): Email addresses to attach as a cc on an outbound email.
  • BCC on outbound email (Optional): Email addresses to attach as a bcc on an outbound email.

Output of Action:
json containing following items:

  • 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": [],
}

Did this page help you?