Frameworks

How to send email from n8n and Zapier

Short answer

To send email from n8n, use the HTTP Request node to POST JSON to an email API with a Bearer header, or use the Send Email node with SMTP credentials. In Zapier, use Webhooks by Zapier with a Custom Request, which needs a paid plan, or the SMTP by Zapier app. The API route gives you an email id and delivery events; SMTP is quicker to set up if you only need to send.

Last checked 16 November 2026

Both n8n and Zapier can send email in two ways: an HTTP request to an email API, or an SMTP connection. In n8n, that means the HTTP Request node or the Send Email node. In Zapier, it means Webhooks by Zapier (Custom Request) or SMTP by Zapier. The HTTP route takes a few more fields but gives you an email id, delivery events and safe retries. SMTP is the quickest to set up.

The examples send through Mailcandor. Any email API with a JSON endpoint and Bearer authentication works the same way.

n8n: the HTTP Request node

Add an HTTP Request node after your trigger and set:

Field Value
Method POST
URL https://api.mailcandor.com/v1/emails
Authentication Generic Credential Type, then Header Auth
Header Auth credential Name Authorization, Value Bearer mc_live_...
Send Body On
Body Content Type JSON
Specify Body Using JSON

Storing the key in a Header Auth credential keeps it out of the workflow itself, so it is not exposed when you export or share the workflow.

For the JSON body, use expressions for the values that come from earlier nodes:

{
  "from": "Acme <hello@acme.com>",
  "to": "{{ $json.email }}",
  "subject": "Your order {{ $json.orderId }} is confirmed",
  "html": {{ JSON.stringify($json.receiptHtml) }},
  "tags": [{ "name": "source", "value": "n8n" }]
}

Notice JSON.stringify on the HTML field. If a value can contain quotes or line breaks, as HTML and free text usually do, wrapping it in quotes yourself produces invalid JSON. JSON.stringify escapes it and adds the quotes.

To make retries safe, turn on Send Headers and add Idempotency-Key with a value such as order-{{ $json.orderId }}-receipt. If the node retries, or the workflow runs twice for the same order, the API returns the first response instead of sending a second email.

The node’s output contains the response, {"id": "...", "status": "queued"}. Save the id if you want to match delivery events later. On an error, the API returns {"error": {"type", "message", "field"}}, which n8n shows in the node’s error output. Turn on Retry On Fail in the node settings for temporary errors such as 429 and 5xx.

n8n: the Send Email node with SMTP

For a quick setup, add a Send Email node and create an SMTP credential. According to n8n’s SMTP credential docs, the fields are:

Credential field Value
User mailcandor
Password Your API key
Host smtp.mailcandor.com
Port 465 (or 587)
SSL/TLS On for 465, off for 587

With port 587 and SSL/TLS off, leave Disable STARTTLS off so the connection is upgraded and encrypted. Our SMTP ports guide explains the difference between the two ports.

In the node, fill in From Email, To Email, Subject and choose the Email Format (Text, HTML or both). Use the same expressions as above for dynamic values.

Zapier: Webhooks by Zapier with a Custom Request

Webhooks by Zapier is not available on Zapier’s Free plan. On a paid plan:

  1. Add an action step and choose Webhooks by Zapier.
  2. Pick the Custom Request event. Unlike the simpler POST event, it sends your body exactly as written, which you need for nested JSON such as tags.
  3. Set Method to POST and URL to https://api.mailcandor.com/v1/emails.
  4. In Data, write the JSON body and insert fields from earlier steps:
{
  "from": "Acme <hello@acme.com>",
  "to": "[Email from step 1]",
  "subject": "Thanks for your order",
  "text": "Hi [Name from step 1], your order is confirmed."
}
  1. Under Headers, add Authorization with Bearer mc_live_..., Content-Type with application/json, and optionally Idempotency-Key with a stable value from the trigger such as the order id.
  2. Test the step. A successful test returns an id with status queued.

Zapier’s help docs note that Custom Request does not parse or reformat the Data field, so check your JSON is valid. Mapped fields that contain quotes can break it; for free text, use a Formatter step to escape the value first, or send it as text and keep it simple.

Zapier: SMTP by Zapier

The SMTP by Zapier app sends an email through any SMTP server. Connect it with host smtp.mailcandor.com, port 465 or 587, username mailcandor and your API key as the password, then fill in the sender, recipient, subject and body in the action. It is a good choice when you want something working in five minutes and do not need delivery tracking.

Make.com

Make works the same way. Use the HTTP app’s request module with method POST, the API URL, an Authorization header and a JSON body. Store the key in the connection or a variable rather than typing it into every scenario, and use the same Idempotency-Key approach for scenarios that can rerun.

API or SMTP: which to use in automation?

HTTP request to an email API SMTP node or app
Setup URL, header and JSON body Host, port, user, password
Response Email id and status Success or an SMTP error
Delivery and bounce events Webhooks, which can trigger another workflow Not available
Duplicate protection Idempotency-Key header None
Batch Up to 100 emails per request One email per step

If a bounced email should do something, such as flagging a CRM contact, choose the API. Bounce, delivery and complaint webhooks can start an n8n Webhook trigger or a Zapier Catch Hook directly. The SMTP vs API guide covers the general trade-offs.

Before you send: verify your domain

Automations often send to customers at volume, so authentication matters. The from address must be on a domain verified with your provider, with SPF, DKIM and DMARC records published. See the SPF, DKIM and DMARC setup guide.

Sending with Mailcandor

Mailcandor has no dedicated n8n or Zapier app; the HTTP and SMTP routes above are how you connect it. The same API key works for the email API and the SMTP relay. Access is by request through the pricing page.

Questions

How do I send an email in n8n?

Add a Send Email node with SMTP credentials, or an HTTP Request node that POSTs JSON to an email API. The HTTP route returns an email id you can use to track delivery.

Which port should I use in n8n's SMTP credentials?

Use 465 with SSL/TLS turned on, or 587 with SSL/TLS turned off so the connection upgrades with STARTTLS. n8n's docs give the same guidance.

Is Webhooks by Zapier free?

No. Zapier says Webhooks by Zapier is not available on the Free plan; it is included on Professional, Team and Enterprise plans.

Can I send HTML email from Zapier?

Yes. With a Custom Request, put the HTML in the html field of the JSON body. Mailboxes show the HTML and fall back to the text field if you send both.

How do I avoid sending duplicate emails when a workflow retries?

Send an Idempotency-Key header built from a stable value in the trigger, such as the order or row id. A repeated key returns the first response instead of sending again.

Related

Send with someone on your side.

Unlimited domains on every plan, a person before any block, and 3,000 emails a month free. Tell us what you send and we set you up within one business day.