use maizzle for email templating, starting with reset password email

This commit is contained in:
m5r
2021-10-26 23:34:21 +02:00
parent 3f279634b6
commit 514dae3ebb
25 changed files with 6069 additions and 508 deletions

View File

@ -15,12 +15,14 @@ const notifyEmailChangeQueue = Queue<Payload>("api/queue/notify-email-change", a
sendEmail({
recipients: [oldEmail],
subject: "",
body: "",
text: "",
html: "",
}),
sendEmail({
recipients: [newEmail],
subject: "",
body: "",
text: "",
html: "",
}),
]);
});

View File

@ -78,7 +78,8 @@ export const subscriptionCreatedQueue = Queue<Payload>("api/queue/subscription-c
if (isReturningSubscriber) {
sendEmail({
subject: "Welcome back to Shellphone",
body: "Welcome back to Shellphone",
text: "Welcome back to Shellphone",
html: "Welcome back to Shellphone",
recipients: [email],
}).catch((error) => {
logger.error(error);
@ -89,7 +90,8 @@ export const subscriptionCreatedQueue = Queue<Payload>("api/queue/subscription-c
sendEmail({
subject: "Welcome to Shellphone",
body: `Welcome to Shellphone`,
text: `Welcome to Shellphone`,
html: `Welcome to Shellphone`,
recipients: [email],
}).catch((error) => {
logger.error(error);

View File

@ -61,7 +61,8 @@ export const subscriptionUpdatedQueue = Queue<Payload>("api/queue/subscription-u
sendEmail({
subject: "Thanks for your purchase",
body: "Thanks for your purchase",
text: "Thanks for your purchase",
html: "Thanks for your purchase",
recipients: [email],
}).catch((error) => {
logger.error(error);