Self-Host Mail Service Sending Blank Emails

Describe the problem/error/question

I’m running a companion self-hosted instance to run custom nodes on. I just set up the mail service last night and when testing noticed that the system message for password resets and invites were successfully being delivered, but the body was blank.

Has anyone had this happen before? There should be a default email body, but I found no mention of what the path for that is.

What is the error message (if any)?

n/a

Please share your workflow

not a workflow issues

Share the output returned by the last node

na

Information on your n8n setup

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

Could you tell us more about this? What have you configured for that?

I added a docker postfix mail relay that relays the smtp request via MS graph.
The config and testing of sending works. The messages are going out….they’re just completely empty.

I know there are environment variables to create a custom email message, but am missing some datapoints, like how would I reference the registrations link or password reset link.

Thank you!

Yea, I’ll have to double check the logs and see if there any errors firing off.
I’m meaning to try a basic custom message body and see if that get’s out ok. If so, I think the default template were blown out somehow during installation or upgrade.

Have you configured any env vars for UM_TEMPLATES?

based on this User management | n8n Docs, I was operating under the assumption that I’d only need to if I wanted to override the default templates :eyes:

Soooo–no, I didn’t lol

Right, you don’t have to configure them, I am just asking to make sure you didn’t :slight_smile: For me, I didn’t have to make any changes except a couple of SMTP variables in the docker compose’ manifest.

That’s good to know it does function as expected. So definitely something with my setup.
I’m going to see if I can fine the templates in the directory. I was being lazy about shelling into the docker instance yesterday.

You can find the paths from here:

2 Likes

That’s exactly what I needed! Thank you!

1 Like

Turns iut the relay script I was using was only set to send text emails. Had the script modified to do html as well and evening worked fine!

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