// guides · n8n error index

n8n Send Email (SMTP) errors: timeouts, 535 Invalid login and SSL fixes, 37 runs

Fix the n8n Send Email node: "The connection timed out", "wrong version number", self-signed certificate, 535 Invalid login, 530 Authentication required, empty bodies, the n8n footer and missing attachments. 37 real runs on n8n 2.43.7.

Updated 2026-10-24 · about 10 minutes

Still stuck after these steps? Paste your exact n8n error and we'll reproduce it and email you the fix, free →

Steps

  1. 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 with The connection timed out, consider setting the 'Retry on Fail' option in the node settings.

  2. '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 offline instead.

  3. Host: only the server name

    Typing smtp://127.0.0.1 in Host failed with The connection cannot be established, this usually occurs due to an incorrect host (domain) value. Put just the name, like smtp.example.com, with no protocol and no port.

  4. 535 Invalid login: check spaces and the full address

    A wrong password, the right password with a trailing space, and the user ana instead of ana@test.local all 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.

  5. 530 Authentication required: login never happened

    With User and Password empty we got Mail command failed: 530 5.7.0 Authentication required when 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 gives self-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.

  6. 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 n8n with a link at the bottom of every email: turn off the option Append n8n Attribution. Older v2 nodes don't add it.

  7. 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.io accepted, b@x.io] rejected). Use {{ $json.emails.join(', ') }}. If only some recipients are refused, the node still succeeds and lists them in rejected, so check {{ $json.rejected.length }} with an If node. When all are refused you get Can'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.

  8. 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, like data, not {{ $binary.data }} (that fails with Provided parameter is not a string or binary data object.). A wrong name fails with The 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.

SetupResult
Port 587, SSL/TLS off, self-signed certificateself-signed certificate; if the root CA is installed locally, try running Node.js with --use-system-ca
Same with Ignore SSL Issues onSent
Port 587 with SSL/TLS on...:error:0A00010B:SSL routines:tls_validate_record_header:wrong version number
Port 465 with SSL/TLS onSent
Port 465 with SSL/TLS offAfter 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 portThe service refused the connection - perhaps it is offline
Host smtp://127.0.0.1The connection cannot be established, this usually occurs due to an incorrect host (domain) value
Host that does not existOn our box DNS hung and n8n reported the timeout message after about 120 s
Wrong password / password with a trailing space / User without the domainAll three: Invalid login: 535 5.7.8 Authentication credentials invalid
User and Password empty on a server that needs loginMail 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 loginSent
To a@x.io, b@x.io or a@x.io; b@x.ioDelivered to both
To set to an array, {{ $json.emails }}Run succeeded; "[ a"@x.io accepted, b@x.io] rejected
Only recipient refused by the serverCan't send mail - all recipients were rejected: 550 5.1.1 <bad@x.io>: Recipient address rejected: User unknown
One good and one refused recipientSuccess; the refused one only in rejected and rejectedErrors
To Email left emptyWorkflow refuses to start: Parameter "To Email" is required.
To {{ $json.email }} on an item without that fieldNo recipients defined
3 input items3 separate emails
3 items, middle recipient refused, On Error = Continue3 output items; the middle one holds the 550 error, the other two sent
CC, BCC and Reply ToAll 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 fieldSent with an empty body plus the n8n footer, no warning
v2.1 default optionsFooter This email was sent automatically with n8n added; Append n8n Attribution off removes it; v2 adds none
Option Attachments, dataFile embedded inline with Content-ID <data>
Option Attachments (File), dataNormal attachment
Wrong property name attachmentThe item has no binary field 'attachment' [item 0]
Attachments (File) set, but the item has no fileSent without the attachment, no error
a, bTwo attachments
{{ $binary.data }} instead of the nameProvided parameter is not a string or binary data object.

Good to know

What we didn't test

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

New guides

Still stuck on your n8n error?

Paste the exact error and say what the workflow should do. We reproduce it on a real n8n install and email you the fix or a working workflow, usually within 24h. Free while we're in beta.

We'll only email you about your error and TaskToAgent.