Skip to content

[payment project] create a route for emailing users their confirmation code #1987

@adarshm11

Description

@adarshm11

as part of verifying membership payments, we are going to email people a confirmation code. to do this, we use the sce google cloud api. your task is to create an email template and a route which we will use to send these emails

  • look through /api/cloud_api/email_templates/ and see how we create email templates. then create a file called membershipConfirmationCode.js. our template will be really simple, all we need to tell them in the email is that they applied for membership, here is their confirmation code (make the code bold).
  • look through /api/cloud_api/routes/Mailer.js. then create a route called /sendMembershipConfirmationCode. this is a POST route that will accept the confirmation code and email address of the recipient in its request body. you can look at the other routes in this file to see how they perform their functions. this route will just need to grab the template you made in the previous step, and embed the confirmation code where expected, then send the email.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions