mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-02 17:14:55 +02:00
add no reply var
This commit is contained in:
parent
e89ee4042a
commit
35c6e465e2
3 changed files with 7 additions and 3 deletions
|
@ -16,6 +16,11 @@ export async function sendEmail(
|
|||
return;
|
||||
}
|
||||
|
||||
if (!opts.from || !opts.to || !opts.subject) {
|
||||
logger.error("Email missing required fields", opts);
|
||||
return;
|
||||
}
|
||||
|
||||
const emailHtml = await render(template);
|
||||
|
||||
const options = {
|
||||
|
@ -26,8 +31,6 @@ export async function sendEmail(
|
|||
};
|
||||
|
||||
await emailClient.sendMail(options);
|
||||
|
||||
logger.debug(`Sent email to ${opts.to}`);
|
||||
}
|
||||
|
||||
export default sendEmail;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue