Back to Blog
/9 min read/By SMTPfast Team

Send email from n8n with SMTPfast

n8n verified the SMTPfast node, so you can add SMTPfast from the nodes panel on n8n Cloud and on self-hosted n8n. This post shows the setup and three workflows: a form to a welcome email, a new Stripe customer to an onboarding email and a segment, and bounce and complaint alerts in Slack and a Google Sheet.

n8nautomationwebhooksproduct
Share:𝕏in

You can now send email from n8n with SMTPfast. n8n verified the SMTPfast node, so it shows in the nodes panel on n8n Cloud and on self-hosted n8n. You do not need to type a package name or write an HTTP Request node.

The package has two nodes:

  • SMTPfast sends email, gets the status of an email, manages contacts and segments, and reads the status of your sending domains.
  • SMTPfast Trigger starts a workflow when SMTPfast sends a webhook event, for example a bounce or a spam complaint.

This post shows the setup and three workflows that you can build in a few minutes. The full reference is in the n8n docs.

What you need

  • An SMTPfast account with a verified sending domain. Every send must come from that domain. The free plan works.
  • An n8n Cloud instance, or a self-hosted n8n.
  • For the trigger on self-hosted n8n: a public HTTPS URL for your instance. More on this in the third example.

Add the node

On n8n Cloud:

  1. On the canvas, open the nodes panel with +.
  2. Search for SMTPfast. It shows under More from the community.
  3. Select it and select Install.

Only the instance owner or an admin can install it. After that, all members of the instance can use it. If SMTPfast does not show in the panel, check that Verified community nodes is on in the instance settings of the n8n Cloud console.

On self-hosted n8n, use the nodes panel in the same way, or go to Settings > Community Nodes, select Install, and enter @smtpfast/n8n-nodes-smtpfast. The package has no runtime dependencies.

Create the credential

The node uses one credential, SMTPfast API. In the SMTPfast dashboard, open API Keys and create a key for n8n. Give it only the scopes your workflows use:

Feature Scopes
Email: Send email:send
Email: Get email:read
Contact: Get, Get Many, the segment list contact:read
Contact: Create, Create or Update, Update, Delete, Add to Segment, Remove From Segment contact:write
Domain: Get, Get Many domain:read
SMTPfast Trigger webhook:read, webhook:write

In n8n, create an SMTPfast API credential and paste the key. n8n tests it with GET /v1/me, which needs no scope. A separate key for n8n lets you revoke it without a change to your apps.

To test a send, do not use example.com. SMTPfast refuses domains for documentation and tests. Send to the Amazon SES mailbox simulator: [email protected] ends as delivered, and [email protected] ends as bounced.

Example 1: form submission to a welcome email

A person fills in a form. n8n adds them to your contacts and sends a welcome email.

Nodes:

  1. n8n Form Trigger with two fields: First name (Text) and Email (Email, required).
  2. Edit Fields (Set), named Settings, with your From address. Turn on Include Other Input Fields, so the form fields stay on the item.
  3. SMTPfast, Contact: Create or Update. Email: {{ $json.Email }}. Under Additional Fields, First Name: {{ $json['First name'] }}.
  4. SMTPfast, Email: Send. To: {{ $('Settings').item.json.Email }}.

Settings that matter:

  • Create or Update, not Create. Create fails with 409 when the address exists. With Create or Update, a person who fills in the form two times does not stop the workflow.
  • Category: Marketing. A welcome email after a newsletter signup is marketing. SMTPfast then adds a one-click unsubscribe header and skips addresses that unsubscribed.
  • Keep the HTML body in fixed mode. In fixed mode, {{unsubscribe_url}} in the body becomes the unsubscribe link. In expression mode, n8n reads {{ }} as an expression. Put the first name in the subject, which can be an expression:
Subject (expression):  Welcome, {{ $('Settings').item.json['First name'] }}
HTML (fixed):          <p>Thanks for signing up. Your first issue comes on Monday.</p>
                       <p><a href="{{unsubscribe_url}}">Unsubscribe</a></p>
  • Tags. Add a tag such as source = n8n-form. You can then filter your logs by it.

The form can also come from another tool. Replace the Form Trigger with a Typeform, Tally or Webhook node, and change the field names in the expressions.

The n8n form does not confirm the email address. If fake signups are a risk, use SMTPfast signup forms with double opt-in. They also send a welcome email, without n8n.

Example 2: new Stripe customer to an onboarding email and a segment

A new customer in Stripe gets an onboarding email, and goes into a Customers segment in SMTPfast. You can then send that segment a broadcast later.

Nodes:

  1. Stripe Trigger with the event customer.created. n8n creates the webhook endpoint in Stripe when you activate the workflow.
  2. Edit Fields (Set), named Settings, with your From address and the sign-in URL of your app. Turn on Include Other Input Fields.
  3. If, named Has an email address?, with the condition {{ $json.data.object.email }} is not empty. Stripe can create a customer without an email address.
  4. SMTPfast, Contact: Create or Update. Email: {{ $json.data.object.email }}. Under Additional Fields, add Segment Names or IDs and select your Customers segment.
  5. SMTPfast, Email: Send, with To: {{ $('Settings').item.json.data.object.email }}.

Settings that matter:

  • Idempotency Key. Stripe can deliver the same event more than one time. Under Additional Fields, set the key to stripe-{{ $('Settings').item.json.id }}-onboarding. The value is the Stripe event ID. When the same key and the same body come again within 24 hours, SMTPfast returns the first result and does not send again. Create or Update is safe to repeat.
  • Segments. The list shows your manual segments. Create the segment in the SMTPfast dashboard first. Create or Update only adds segments. It does not remove the contact from other segments.
  • Category. Select Transactional when the email holds what the customer needs for the account, such as the sign-in link and where to get help. When the email is tips or offers, select Marketing. Do not label promotions as transactional.
  • Custom properties. To store the Stripe customer ID on the contact, create a property such as stripe_customer_id in SMTPfast first. Then add it under Properties with the type Text. A property that does not exist in SMTPfast is refused.

Example 3: bounce or complaint to a Slack alert and a sheet row

When an email bounces or a person marks it as spam, n8n posts a Slack message and writes a row to a Google Sheet.

Nodes:

  1. SMTPfast Trigger with the events Email Bounced and Email Complained.
  2. If, named Hard bounce or complaint?, with the condition {{ $json.type === 'email.complained' || $json.data.bounce_type === 'Permanent' }} is true.
  3. Slack, Send Message, on the true branch.
  4. Edit Fields (Set), named Shape the row, directly after the trigger. It makes one flat row from the event.
  5. Google Sheets, Append Row, with Map Automatically. The first row of the sheet must have the same column names as the fields from Shape the row.

The trigger output is the event as SMTPfast sends it:

{
  "type": "email.bounced",
  "timestamp": "2026-12-04T08:00:00.000Z",
  "data": {
    "email_id": "email_abc123",
    "from": "[email protected]",
    "to": ["[email protected]"],
    "bounce_type": "Permanent",
    "bounce_sub_type": "General",
    "refused_by_account_suppression_list": false,
    "bounced_recipients": ["[email protected]"]
  }
}

A complaint has complained_recipients in place of the bounce fields. The Slack text can use both:

{{ $json.type === 'email.complained' ? 'Spam complaint' : 'Hard bounce' }} from {{ ($json.data.complained_recipients || $json.data.bounced_recipients || []).join(', ') }}
Email {{ $json.data.email_id }}, sent from {{ $json.data.from }}

Settings that matter:

  • Activate the workflow. When you activate it, the trigger creates a webhook in SMTPfast for the n8n URL and the selected events. When you deactivate it, the trigger deletes that webhook. The editor's test URL gets its own webhook, so a test does not change the production webhook.
  • A public HTTPS URL. SMTPfast only sends webhooks to HTTPS on port 443. n8n Cloud URLs work as they are. A self-hosted n8n on http://localhost:5678 cannot receive them. Set WEBHOOK_URL to the public https:// address of your n8n, or use a tunnel.
  • Signatures. The trigger checks the X-SMTPfast-Signature header on every request. A request with a missing or wrong signature gets a 401 and does not start the workflow.
  • Use bounced_recipients, not to. The to field lists every To address of the email. bounced_recipients and complained_recipients name the addresses that had the problem.
  • Soft bounces. Transient bounces, such as a full mailbox, often clear on their own. The If node keeps them out of Slack, and the sheet still records them.

You do not need to remove these addresses yourself. SMTPfast adds hard bounces and complaints to your suppression list and does not send to them again.

If all you want is a Slack message for every event, you do not need n8n. A webhook in SMTPfast can post to a Slack or Discord URL directly. See webhooks. Use n8n when you want to filter the events, write them to a sheet or a database, or start more steps.

Things to know

  • One email per item. The Send operation sends one email for each input item. All addresses in To, CC and BCC on that item go on the same email, and every recipient sees the To and CC addresses. To send a separate email to each person, give each person their own item first, for example with the Split Out node. More in the docs.
  • Check the status. The Send output has the email id. An SMTPfast node with Email: Get returns the status, such as delivered or bounced. The node repository has an example workflow that sends to the SES simulator, waits 30 seconds, and reads the status of each email.
  • Attachments. Enter the names of binary fields, for example invoice. SMTPfast takes up to 10 files and 25 MB per email.
  • Domains are read-only. The node shows the status of your domains and their DNS records. You add and verify a domain in the dashboard.
  • Version. This post uses version 0.1.0 of the node. It was tested with n8n 2.48.7.

Try it

If you do not have an account yet, create one on the free plan and verify a domain. Then add SMTPfast from the nodes panel in n8n. For bugs or questions, open an issue on the node repository or write to [email protected].

Sources

Checked on 4 December 2026:

Frequently asked questions

Is there an SMTPfast node for n8n?

Yes. The package is @smtpfast/n8n-nodes-smtpfast and n8n verified it. On n8n Cloud, search for SMTPfast in the nodes panel and select Install. On self-hosted n8n, use the nodes panel or go to Settings > Community Nodes and install the package by name.

Which API key scopes does the n8n node need?

Only the scopes of the features you use: email:send to send, email:read to get an email, contact:read and contact:write for contacts, domain:read for domains, and webhook:read and webhook:write for the SMTPfast Trigger. The credential test calls GET /v1/me, which needs no scope.

Why does n8n send one email to all recipients instead of one each?

The Send operation sends one email for each input item. All addresses on that item go on the same email. To send a separate email to each person, give each person their own item first, for example with the Split Out node.

Does the SMTPfast Trigger work on a local n8n?

Not on http://localhost. SMTPfast only sends webhooks to a public HTTPS URL on port 443. Set WEBHOOK_URL on your n8n to its public https address, or use a tunnel. n8n Cloud URLs work as they are.

Ready to get started?

Start sending transactional email today. Free to start, no credit card required.

Start free