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:
- Add an action step and choose Webhooks by Zapier.
- 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. - Set Method to
POSTand URL tohttps://api.mailcandor.com/v1/emails. - 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."
}
- Under Headers, add
AuthorizationwithBearer mc_live_...,Content-Typewithapplication/json, and optionallyIdempotency-Keywith a stable value from the trigger such as the order id. - Test the step. A successful test returns an
idwith statusqueued.
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.