SMTP
Send emails from your own mail server or email provider inside a workflow.
SMTP
What does it do?
The SMTP node sends emails from your own mail account inside a workflow. Think of it like an automated office mail desk that takes your message, adds recipients and files, then sends everything for you.
It works well for alerts, invoices, approvals, and customer follow-ups.
Smart features
Uses your saved email connection: select one SMTP resource and Diaflow sends from that mailbox.
Supports dynamic fields: you can pull the To, Cc, Subject, Message, and Attachments from earlier steps.
Handles multiple recipients: send to one person or several people in To and Cc.
Adds file attachments automatically: attach files created or stored earlier in the workflow.
Chooses the secure connection for you: Diaflow uses the right mail security method based on the port in your SMTP resource.
Prevents accidental mail loops: if a workflow starts from an incoming email, Diaflow blocks sending back to that same triggering address.
Avoids duplicate sends for one hour: if the same node runs again with the same content, Diaflow can return the earlier success instead of sending a duplicate email.

Real-World Business Value
Send invoices with PDF attachments to customers as soon as a deal is marked closed.
Notify a manager and support team when a high-priority request enters the workflow.
Deliver automated status updates, summaries, or approval emails without manual copy and paste.
Add Gmail SMTP credentials
Use these steps if you want to send email with a Google account.
Google SMTP usually requires an App password. Turn on 2-Step Verification in your Google Account before you create one.
Use the credential in the SMTP node
In Credentials, select the Gmail SMTP credential you just saved.
In To, enter one email address or insert one or more addresses from a previous node.
In Cc, add any extra recipients who should receive a copy.
In Object, enter the email subject line.
In Message, write the email content you want recipients to receive.
In Attachments, select any files you want to include, such as a generated invoice or exported report.
Run the workflow and confirm the send result in the Output tab.
The Transformation: Before & After
Before workflow data ready to send

After email sent

Tips & Warnings for First-Timers
Best practices
Use a tested SMTP resource before building the rest of the workflow.
Enter full email addresses in To and Cc.
Use standard list formatting if you pass multiple recipients from another step.
Keep attachment filenames clear before sending. Recipients may see the exact file name.
Use this node for final send steps, after you confirm the message content is correct.
Warnings
Do not select an old, inactive, or wrong SMTP resource. The node will try to use the resource you choose.
Do not expect the same email to send again within one hour if all settings and content are unchanged. Diaflow may treat it as a duplicate.
Do not paste recipient lists in unusual text formats. If you pass multiple addresses, keep them in a clean standard list format.
Do not include the triggering sender in To or Cc when the workflow starts from an incoming email. The send will be blocked.
Do not leave the SMTP host, port, username, or password incorrect in the selected resource. The email will fail to send.
Do not attach files that no longer exist or cannot be reached by the workflow.
Do not rely on this node for instant failure feedback when the mail server is slow or unreachable. Sending can take longer than expected.
Do not use vague attachment names if the recipient needs to recognize the file quickly.
Need help?
Learn the basics in How a node works
Build the full flow in Create a workflow
Browse related nodes in Component List
Last updated






