For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

1

Open Add Credentials

  • In the SMTP node, open Credentials.

  • Click Add Credentials.

  • Keep the credentials form open.

  • You will paste the Google app password here later.

2

Enter the SMTP details

  • In Host, enter smtp.gmail.com.

  • In Port, enter 465.

  • In Username, enter your full Google email address.

  • If the form includes a sender field, enter the same email address in From email.

  • Leave Password empty for now.

3

Open Manage your Google Account

  • Open Gmail or another Google page.

  • Click your profile picture.

  • Click Manage your Google Account.

4

Search for App Password

  • Use the Google Account search bar.

  • Search for App Passwords.

  • Open the App passwords result.

  • Verify your identity if Google asks.

5

Create Password

  • In App passwords, enter the app name you want to use.

  • Click Create.

  • Copy the generated password before you close the window.

6

Paste the password into Add Credentials

  • Return to the Add Credentials page in Diaflow.

  • Paste the generated app password into Password.

  • Save the credential.

  • Select that saved credential in the SMTP node.

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?

Last updated