This commit is contained in:
Owen
2025-10-04 18:36:44 -07:00
parent 3123f858bb
commit c2c907852d
320 changed files with 35785 additions and 2984 deletions

View File

@@ -11,7 +11,7 @@ export async function sendEmail(
from: string | undefined;
to: string | undefined;
subject: string;
},
}
) {
if (!emailClient) {
logger.warn("Email client not configured, skipping email send");
@@ -25,16 +25,16 @@ export async function sendEmail(
const emailHtml = await render(template);
const appName = "Pangolin";
const appName = config.getRawPrivateConfig().branding?.app_name || "Pangolin";
await emailClient.sendMail({
from: {
name: opts.name || appName,
address: opts.from,
address: opts.from
},
to: opts.to,
subject: opts.subject,
html: emailHtml,
html: emailHtml
});
}