Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Add html rendering for emails #290

Closed

Description

@Zeko369

We should add a simple ejs renderer for sending emails so that we can do something like this

async render(variables: IMailerParams, template: string) {
  const html: string = await ejs.renderFile(
    `src/services/mail/templates/${template}.html.ejs`,
    variables
  );

  return html;
}

and then have something like this in the template

<html>
  <body>
    <h1>Welcome <%= username %></h1>
  </body>
</html>

Activity

  1. allella commented on Dec 15, 2019

    @allella
    Contributor

    #274 will need this functionality to insert placeholders for opt-out links, among other thing.

  2. Zeko369 commented on Dec 15, 2019

    @Zeko369
    ContributorAuthor

    Ok we'll discuss this during the meeting today

  3. added
    Enhancement
    on Dec 15, 2019
  4. QuincyLarson commented on Dec 15, 2019

    @QuincyLarson
    Contributor

    I propose we discuss this after we ship the MVP. In my humble opinion this is not MVP.

    The moment we introduce HTML, organizations will start asking for ways they can customize it.

    Plain text has higher deliverability/open/click-through than HTML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementMVP

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions