Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Setup SendGrid Templates #533

Merged
merged 7 commits into from
Jul 9, 2024
Merged

Setup SendGrid Templates #533

merged 7 commits into from
Jul 9, 2024

Conversation

AdrianAndersen
Copy link
Member

@AdrianAndersen AdrianAndersen commented Jul 6, 2024

  • refactor(dotenv): use esm import
  • feat(email-service): setup email templates

This PR sets up email templating, using SendGrid Dynamic Templates. This means that we can generate the emails in the SendGrid GUI editor, and insert variables, attachments or custom HTML if need be. This approach can let us get rid of bl-email really quickly, as I just made our first template in like 5 minutes, for the email confirmation page. This design is quite simple tho, and we can for sure make something really pretty with their tooling.

Current confirm email template

Screenshot 2024-07-06 at 15 47 12

The new one (I just copied over everything to SendGrid)

Screenshot 2024-07-06 at 15 45 26

@AdrianAndersen AdrianAndersen self-assigned this Jul 6, 2024
@AdrianAndersen AdrianAndersen changed the title sendgrid templates Setup SendGrid Templates Jul 6, 2024
@LarsSelbekk
Copy link
Contributor

src/messenger/email/email-service.ts Outdated Show resolved Hide resolved
src/messenger/email/email-service.ts Show resolved Hide resolved
src/config/environment.ts Outdated Show resolved Hide resolved
src/messenger/email/email-service.ts Show resolved Hide resolved
Copy link
Contributor

@LarsSelbekk LarsSelbekk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@AdrianAndersen AdrianAndersen merged commit 9d97490 into master Jul 9, 2024
6 checks passed
@AdrianAndersen AdrianAndersen deleted the sendgrid-templates branch July 9, 2024 09:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants