mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
@@ -32,7 +32,7 @@ const sendEmail = async ({ to, type, data = {} }) => {
|
||||
throw new Error(`Email template "${type}" not found`);
|
||||
}
|
||||
|
||||
const { subject, text } = templateFn(data);
|
||||
const { subject, html } = templateFn(data);
|
||||
|
||||
return await new Promise((resolve, reject) => {
|
||||
transporter.sendMail(
|
||||
@@ -43,7 +43,7 @@ const sendEmail = async ({ to, type, data = {} }) => {
|
||||
},
|
||||
to,
|
||||
subject,
|
||||
text,
|
||||
html,
|
||||
},
|
||||
(err, info) => {
|
||||
if (err) return reject(err);
|
||||
|
||||
Reference in New Issue
Block a user