Skip to main content Skip to footer

SMTP Send Documentation

Version: 4.1.0

Retrieved: 2025-10-09 15:16:20


SMTP Send

This module sends an email using a SMTP server of choice.

The example is using gmail, to enable your gmail to be used as authentication you have to enable this in google security for your account.

Settings

Name Requirements Purpose Default
Host* string The SMTP server to use  
Port* int The SMTP port to use 587
Credential username/password Optional credential to use  
From* string The sender of the email. Note that some SMTP server requires this to be the same as the account used  
To* List of strings All the recipients of the email  
Subject* string The subject of the email  
Content* string The body of the email  
BodyIsHtml bool True if the content is HTML true
Use SSL bool If true the email will be sent using SSL true
Attachment property string The property containing the content of the attachment  
Attachment file name string The name of the attachment, if left empty the property 'docname' on the message will be used, if no such property exists the name will be attachment.txt  
Attachment type string The MIME type of the attachment  

Credential

This module contains an option to select credentials to use in the module. All credentials supported by the module are presented in a drop-down.

Input

All settings marked with a * can be overwritten by passing in the property on the incoming message. So for example we can override the content by passing in a message like this.

{content:'<h1>Hello World</h1>'}

Note that settings has higher priority than the message sent in.

Example

In this example we use the gmail SMTP server. Important! This example is using gmail, to enable gmail to be used as SMTP server you have to enable this in google security for your account.

Name Value
host smtp.gmail.com
port 587
from "your-email@somedomain.com"
to ["your-email@somedomain.com"]
subject Demo
content <br><br>This is a test<br>==============<br><br>Did it work?<br><br>
bodyIsHtml true
useSSL true

Output

The output will be the incoming message plus information about the email being sent. The outgoing message will also include a crosser property with success information.

Example:

{
    "host": "smtp.gmail.com",
    "from": "test@mydomain.com",
    "to": [
        "demo@mydomain.io"
    ],
    "subject": "Test",
    "content": "Hello",
    "port": 587,
    "bodyIsHtml": true,
    "useSSL": true,
    "username": "******",
    "password": "******",
    "crosser": {
        "success": true
    }
}