mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-19 19:36:38 +00:00
add no reply var
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -43,6 +43,7 @@ const environmentSchema = z.object({
|
||||
.pipe(z.number().optional()),
|
||||
EMAIL_SMTP_USER: z.string().optional(),
|
||||
EMAIL_SMTP_PASS: z.string().optional(),
|
||||
EMAIL_NOREPLY: z.string().optional(),
|
||||
});
|
||||
|
||||
const environment = {
|
||||
|
||||
Reference in New Issue
Block a user