Improve email branding and SMTP envelope
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { getMailFrom, getMailTransport } from "./transport";
|
||||
import { getMailEnvelopeFrom, getMailFrom, getMailTransport } from "./transport";
|
||||
import { renderReminderEmailHtml, renderReminderEmailText, type ReminderEmailData } from "./reminderTemplate";
|
||||
|
||||
export async function sendReminderEmail(to: string, data: ReminderEmailData) {
|
||||
const transport = getMailTransport();
|
||||
await transport.sendMail({
|
||||
from: getMailFrom(),
|
||||
envelope: { from: getMailEnvelopeFrom() },
|
||||
to,
|
||||
subject: `Dein Online-Termin bei ANOUMA beginnt in ${data.minutesBefore} Minuten`,
|
||||
html: renderReminderEmailHtml(data),
|
||||
|
||||
Reference in New Issue
Block a user