SMTP Send Email encoding issue adding extra spaces

Describe the problem/error/question

SMTP Send Email Encoding Breaks my Script as it changes the raw html
──────────────────────────────
My workflow uses the built‐in SMTP “Send Email” node in n8n to send an HTML email that is processed downstream by my MailToJsonService. That service expects a clean HTML email in which the content is not encoded (i.e. it should not contain quoted‑printable artifacts such as unexpected “=” signs or soft line breaks).

When the email is sent via n8n’s SMTP node, the resulting raw source shows that the email uses Quoted‑Printable encoding (indicated by the “Content-Transfer-Encoding: quoted-printable” header) and introduces extra whitespace and broken-up text. This causes our MailToJsonService to fail (reporting “No mail payload found”) because its HTML parser cannot correctly extract the expected table and paragraph structure.

I need some help as theres no extra options in the SMTP node…

This is all tested in Thunderbird using HTML and works with no issues - the issue is trying to use n8n for the automation of sending the email

• An option in the SMTP node to force the email to send as raw HTML (e.g. using 7bit or 8bit encoding without quoted‑printable formatting), or
• A recommended workaround (such as a Code node using a custom nodemailer solution) to output a correctly formatted HTML email that matches our expected structure.

──────────────────────────────

  1. Alternative Email Nodes/Integrations:
    If n8n’s built‐in SMTP node doesn’t support changing the encoding, are there any community nodes that offer additional email formatting options.

──────────────────────────────

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: latest
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): self hosted docker
  • Operating system:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.