Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emailer: Personalize emails with user info #229

Open
huang0h opened this issue May 2, 2024 · 0 comments
Open

Emailer: Personalize emails with user info #229

huang0h opened this issue May 2, 2024 · 0 comments

Comments

@huang0h
Copy link
Contributor

huang0h commented May 2, 2024

Why

Through the volunteer emailer, admins should be able to personalize the emails they send using the recipient's information from the table (pic)

What to do

  • Update the SendEmailRequest DTO to take in user data in addition to their email (TODO update api spec with the shape of the data)
  • Update the Emailer.sendArbitraryEmail() method to interpolate this user data into the email
    • We can use the same format that we use for our static emails - e.g. ${firstName} gets replaced with a user's first name
    • Leverage the code from EmailOperations.getTemplateString() to interpolate values - we should be able to abstract the logic from here

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant