Add Custom Email SendAndWait templates

The idea is:

Allow users to fully customize HTML of SendAndWait mails so expert users could implement their own templates.

My use case:

From node configuration, users could define a HTML template with variables like {$message}, {$subject}, {$buttons}… So they could integrate other parameteres from the mail and create a email in their very own style/branding.

I think it would be beneficial to add this because:

Current templates have some styles like text-align:center and max-width<500 what make difficult to read long emails, even more from desktop environments.

Any resources to support this?

Are you willing to work on this?

I could help developing this feature, but sadly my current time is limited due to family context and work.

You’d like to fully replace the HTML used by “Send and Wait” emails (with variables), because the current template enforces styles that don’t fit your use case.

Until this is supported natively, the simplest workaround is to render the email with a regular Email node (100% custom HTML), then handle the “wait” using a unique link to an n8n Webhook (token + status stored in a DB). Is your main need the HTML customization, or do you also need to keep the built in Send and Wait button/reply flow?

If I am not wrong HTML customization for simple Send Email works fine if you fully customize the message with HTML, The requirement only apply to “Send and Wait” as it’s on this case when the node always uses https://github.dev/n8n-io/n8n/blob/master/packages/nodes-base/utils/sendAndWait/email-templates.ts.

Thank you!

1 Like