use maizzle for email templating, starting with reset password email
This commit is contained in:
@ -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: "",
|
||||
}),
|
||||
]);
|
||||
});
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user