diff --git a/src/lib/mail.ts b/src/lib/mail.ts index 03deddd..48b8999 100644 --- a/src/lib/mail.ts +++ b/src/lib/mail.ts @@ -43,6 +43,10 @@ interface SendMailInput { } export async function sendMail({ to, subject, text, html }: SendMailInput): Promise { - const from = process.env.MAIL_FROM ?? process.env.SMTP_USER; + const fromAddress = process.env.MAIL_FROM ?? process.env.SMTP_USER; + // Wrap in a display name — a bare address (e.g. "team@pawfeed.org") makes + // most mail clients fall back to showing the local-part ("team") as the + // sender name instead of something recognizable (Gitea #20). + const from = `"PawFeed Team" <${fromAddress}>`; await getTransporter().sendMail({ from, to, subject, text, html }); }