Docs
Apps
SMTP Node

SMTP Node

Loading node sections...

Overview

The SMTP Node is an email automation component that provides action capabilities for SMTP integration. This node enables automated email sending and management within flows, supporting reliable email delivery through standard SMTP protocol.

smtp.png

Node Type Information

TypeDescriptionStatus
Batch TriggerStarts the flow on a schedule or batch event. Ideal for periodic data processing.❌ False
Event TriggerStarts the flow based on external events (e.g., webhook, user interaction).❌ False
ActionExecutes a task or logic as part of the flow (e.g., API call, transformation).✅ True

This node is an Action node that provides email automation capabilities for sending emails through SMTP protocol.

This node provides Action capabilities to send emails through SMTP servers within your workflows.

Features

Key Functionalities
  1. Action - Send Email: Composes and sends emails with customizable content, recipients, and attachments through SMTP protocol.
  2. SMTP Authentication: Supports various SMTP authentication methods including username/password authentication.
  3. HTML and Plain Text Support: Send emails in both HTML and plain text formats.
  4. Multiple Recipients: Support for CC and BCC recipients in addition to primary recipients.
Benefits
  1. Reliable Email Delivery: Uses standard SMTP protocol for reliable email delivery across different email providers.
  2. Flexible SMTP Configuration: Works with any SMTP server, including custom mail servers and third-party providers.
  3. Automated Email Communication: Streamlines email sending processes with customizable templates and dynamic content.
  4. Enterprise Integration: Ideal for enterprise environments with custom SMTP servers and security requirements.

Prerequisites

Before using SMTP Node, ensure the following:

  • SMTP Server Access: Valid SMTP server credentials and connection details.
  • Email Account: A valid email account configured for SMTP sending.

Setup

Step 1: Configure SMTP Credentials

  1. Set Up SMTP Credentials:
    • Configure SMTP host, port, username, and password
    • Ensure proper authentication settings for your SMTP server
    • Test SMTP connection to verify credentials

Step 2: Set Up Lamatic Flow

  1. Create a Custom Flow for SMTP email automation:
    • Configure the SMTP node with your credentials
    • Set up action parameters for email operations
    • Define recipient lists and email content

Configuration Reference

Credential Configuration

ParameterDescriptionRequiredExample
Credential NameDisplay name for the SMTP credentialsMy SMTP Server
Sender EmailEmail address to send from[email protected]
Sender NameDisplay name for the senderJohn Doe
SMTP HostSMTP server hostname or IP addresssmtp.gmail.com
SMTP PortSMTP server port number587
UsernameSMTP authentication username[email protected]
PasswordSMTP authentication passwordyour-password

Action Configuration

Send Email Action

ParameterDescriptionRequiredExample
NameDisplay name for the actionSend Email
CredentialsSMTP authentication details required to send emailsmy-smtp-credentials
Recipient EmailRecipient email addresses (comma-separated)[email protected]
SubjectEmail subject lineAutomated Response
BodyEmail body content (supports HTML and plain text)Hello, this is an automated email.
CCCC recipient email addresses (comma-separated)[email protected]
BCCBCC recipient email addresses (comma-separated)[email protected]
In HTMLSet to true if the email body is HTMLtrue, false

Low-Code Example

Action Example

Send Email Action

nodes:
  nodes:
  - nodeId: smtpNode_859
    nodeType: smtpNode
    nodeName: SMTP
    values:
      credentials: 'smtp_1'
      recipient_email: ''
      cc: ''
      bcc: ''
      subject: ''
      body: ''
      is_html: false
    modes: {}
    needs:
      - triggerNode_1

Output

Action Output

Send Email Output

  • messageId: String identifier for the sent email
  • success: Boolean indicating if the email was sent successfully
  • timestamp: String containing the send timestamp
  • recipients: Array of recipient objects with delivery status
  • error: String containing error message if sending failed

Troubleshooting

Common Issues

ProblemSolution
Authentication ErrorsVerify that the SMTP credentials are correct and the server supports the authentication method
Connection TimeoutCheck SMTP host and port settings, ensure firewall allows SMTP connections
SSL/TLS IssuesVerify SSL/TLS settings match your SMTP server requirements
Send Email FailsVerify recipient email addresses and ensure the SMTP server allows sending
Rate LimitingImplement appropriate delays between email sends to avoid hitting rate limits
Port BlockingEnsure the SMTP port (usually 587, 465, or 25) is not blocked by firewall

Debugging

  • Check SMTP server logs for detailed error messages
  • Verify SMTP credentials and server settings
  • Test SMTP connection using email client or command line tools
  • Monitor SMTP server quota and rate limits
  • Validate email addresses and message content
  • Check network connectivity and firewall settings
  • Review SMTP server documentation for specific error codes
  • Ensure proper SSL/TLS configuration for secure connections

Common SMTP Ports

PortProtocolDescription
25SMTPStandard SMTP port (often blocked)
587SMTP/TLSSubmission port with STARTTLS
465SMTP/SSLSecure SMTP with SSL encryption

Popular SMTP Providers

ProviderSMTP HostPortSecurity
Gmailsmtp.gmail.com587STARTTLS
Outlooksmtp-mail.outlook.com587STARTTLS
Yahoosmtp.mail.yahoo.com587STARTTLS
SendGridsmtp.sendgrid.net587STARTTLS
Mailgunsmtp.mailgun.org587STARTTLS

Was this page useful?

Questions? We're here to help

Subscribe to updates