Steps
Port 587 or 465? Set SSL/TLS to match
This one setting caused most of our failures. On port 587, turn SSL/TLS off: n8n upgrades the connection with STARTTLS by itself. With SSL/TLS on, 587 failed with
...:error:0A00010B:SSL routines:tls_validate_record_header:wrong version number. On port 465, turn SSL/TLS on (the credential's default). With it off, the node waited about 30 seconds and failed withThe connection timed out, consider setting the 'Retry on Fail' option in the node settings.'The connection timed out' is not a wrong password
We got exactly the same timeout message from a port that accepts the connection and never answers, which is what a firewall or a host that blocks outgoing SMTP looks like. So when you see it, check the SSL/TLS setting first, then whether your server or cloud provider lets you reach that port at all. A closed port fails fast with
The service refused the connection - perhaps it is offlineinstead.Host: only the server name
Typing
smtp://127.0.0.1in Host failed withThe connection cannot be established, this usually occurs due to an incorrect host (domain) value. Put just the name, likesmtp.example.com, with no protocol and no port.535 Invalid login: check spaces and the full address
A wrong password, the right password with a trailing space, and the user
anainstead ofana@test.localall gave the same error:Invalid login: 535 5.7.8 Authentication credentials invalid. Retype the password, and use the full email address as User. Gmail and Outlook word this differently (Gmail needs an app password), but it is the same 535 code.530 Authentication required: login never happened
With User and Password empty we got
Mail command failed: 530 5.7.0 Authentication requiredwhen the message was handed over, not at login. We got the identical error with correct credentials when Disable STARTTLS was on: our server, like Gmail and Outlook on 587, only offers login after STARTTLS, so n8n never tried to log in. Turn Disable STARTTLS off. A self-signed or internal certificate givesself-signed certificate; if the root CA is installed locally, try running Node.js with --use-system-ca: turn on the node option Ignore SSL Issues only for a server you trust.Empty email body, or an n8n footer you didn't write
The Send Email node v2.1 defaults to Email Format HTML. Text typed into the Text field earlier stays hidden there, and the email went out with an empty body and no warning. Put your content in the HTML field or switch the format to Text. v2.1 also adds
This email was sent automatically with n8nwith a link at the bottom of every email: turn off the option Append n8n Attribution. Older v2 nodes don't add it.Several recipients, rejected addresses and one email per item
Commas and semicolons both worked in To. An array from an expression like
{{ $json.emails }}did not: the run succeeded, but the addresses were mangled ("[ a"@x.ioaccepted,b@x.io]rejected). Use{{ $json.emails.join(', ') }}. If only some recipients are refused, the node still succeeds and lists them inrejected, so check{{ $json.rejected.length }}with an If node. When all are refused you getCan't send mail - all recipients were rejected: 550 5.1.1 .... The node sends one email per input item, so 3 items means 3 emails.Attachment missing? Pick the right option and keep the file
v2.1 has two options. Attachments (File) adds a normal attachment. Attachments embeds the file inline with a Content-ID (for
cid:images in HTML), which many mail apps don't show as an attachment. Type the binary property name, likedata, not{{ $binary.data }}(that fails withProvided parameter is not a string or binary data object.). A wrong name fails withThe item has no binary field 'attachment' [item 0]. But if the incoming item has no file at all, for example because an Edit Fields node dropped it, the email is sent without the attachment and with no error.
What we ran
On 24 October 2026 we ran 37 executions of the Send Email node (v2.1, the version n8n 2.43.7 creates, plus v2 once) with an SMTP credential, using n8n execute. Instead of a real provider we used local test mail servers: one on a 587-style port that only offers login after STARTTLS (like Gmail and Outlook), one with TLS from the start like port 465, one plain server without login, a port that accepts connections and never answers, and a closed port. The certificate was self-signed. Every message below is copied from those runs. Real Gmail, Outlook, Office 365 and SES were not tested, and their exact wording differs.
| Setup | Result |
|---|---|
| Port 587, SSL/TLS off, self-signed certificate | self-signed certificate; if the root CA is installed locally, try running Node.js with --use-system-ca |
| Same with Ignore SSL Issues on | Sent |
| Port 587 with SSL/TLS on | ...:error:0A00010B:SSL routines:tls_validate_record_header:wrong version number |
| Port 465 with SSL/TLS on | Sent |
| Port 465 with SSL/TLS off | After about 30 s: The connection timed out, consider setting the 'Retry on Fail' option in the node settings |
| Port that accepts but never answers (blocked or firewalled) | Same timeout message after about 30 s |
| Closed port | The service refused the connection - perhaps it is offline |
Host smtp://127.0.0.1 | The connection cannot be established, this usually occurs due to an incorrect host (domain) value |
| Host that does not exist | On our box DNS hung and n8n reported the timeout message after about 120 s |
| Wrong password / password with a trailing space / User without the domain | All three: Invalid login: 535 5.7.8 Authentication credentials invalid |
| User and Password empty on a server that needs login | Mail command failed: 530 5.7.0 Authentication required |
| Correct login, Disable STARTTLS on (login offered only after STARTTLS) | No login attempt, then Mail command failed: 530 5.7.0 Authentication required |
| Plain port without login | Sent |
To a@x.io, b@x.io or a@x.io; b@x.io | Delivered to both |
To set to an array, {{ $json.emails }} | Run succeeded; "[ a"@x.io accepted, b@x.io] rejected |
| Only recipient refused by the server | Can't send mail - all recipients were rejected: 550 5.1.1 <bad@x.io>: Recipient address rejected: User unknown |
| One good and one refused recipient | Success; the refused one only in rejected and rejectedErrors |
| To Email left empty | Workflow refuses to start: Parameter "To Email" is required. |
To {{ $json.email }} on an item without that field | No recipients defined |
| 3 input items | 3 separate emails |
| 3 items, middle recipient refused, On Error = Continue | 3 output items; the middle one holds the 550 error, the other two sent |
| CC, BCC and Reply To | All delivered; Cc header present, Bcc not in the headers, Reply-To set |
From Ana Shop <ana@test.local> | Display name shown, sender ana@test.local (our server did not check that the login owns the From address; Gmail and Outlook do) |
| v2.1, format HTML (default), text only in the hidden Text field | Sent with an empty body plus the n8n footer, no warning |
| v2.1 default options | Footer This email was sent automatically with n8n added; Append n8n Attribution off removes it; v2 adds none |
Option Attachments, data | File embedded inline with Content-ID <data> |
Option Attachments (File), data | Normal attachment |
Wrong property name attachment | The item has no binary field 'attachment' [item 0] |
| Attachments (File) set, but the item has no file | Sent without the attachment, no error |
a, b | Two attachments |
{{ $binary.data }} instead of the name | Provided parameter is not a string or binary data object. |
Good to know
- Gmail node failing with
Client authentication failed,invalid_grantorInvalid email address: n8n Gmail node not working. - Forgot your n8n password and see
Email sending must be set up in order to request a password reset email? n8n forgot password: reset the owner account. - Sending failure alerts by email from an Error Trigger and nothing arrives? See n8n error workflow not triggering.
- Attaching a CSV or XLSX built in n8n? Convert to File outputs only the file and drops the other fields, so use them before it or merge them back: see n8n Convert to File not working.
- HTML body built from AI or Markdown text, with tables showing as pipes or lines running together? See n8n Markdown node not working.
- Files that disappear between nodes: n8n binary data not found. Reading attachments from incoming mail: n8n Email Trigger attachments. Errors from other connections: HTTP Request node errors. Getting told when a workflow fails: n8n error workflow.
- Every error message we reproduced is in the n8n error message index.
What we didn't test
- Real Gmail, Outlook, Office 365 or SES servers, providers rejecting a From address that isn't yours, the Send and Wait operation, and the Gmail node with OAuth2.
Start from a working agent
FAQ
Why does n8n Send Email say 'The connection timed out'?
In our runs it meant one of two things: SSL/TLS was off on port 465, or the port was blocked so the server never answered. Use 465 with SSL/TLS on or 587 with it off, and check that your host allows outgoing SMTP.
Should SSL/TLS be on for port 587 in n8n?
No. On 587 leave SSL/TLS off and n8n uses STARTTLS automatically. With it on we got 'wrong version number'. Turn it on only for port 465.
Why do I get 530 Authentication required with the right password?
Check that Disable STARTTLS is off. Servers like Gmail and Outlook only allow login after STARTTLS, so with that toggle on n8n never logged in and the server refused the message with 530.
How do I remove 'This email was sent automatically with n8n'?
Open the Send Email node options and turn off Append n8n Attribution. Node version 2.1 adds the footer by default.
Why is my n8n email sent without the attachment?
Either the item reaching Send Email has no file (an earlier node dropped it, and n8n sends anyway without an error), or you used the Attachments option, which embeds the file inline. Use Attachments (File) with the binary property name, like data.
Related guides
- n8n Redis node errors and hangs: connection, TLS and Set fixes, 50 tests
- n8n MySQL node errors: Access denied, SSL and SQL fixes, 41 runs
- n8n Switch node not working: missing items, wrong output and type errors, 30 runs
- n8n MongoDB node errors: Authentication failed, Invalid JSON and query fixes, 40 runs
- n8n Remove Duplicates not working: missing field, history size, 63 runs
New guides
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes