feat: send header (#5707)

This commit is contained in:
Apoorv Mishra
2023-08-20 10:55:04 +05:30
committed by GitHub
parent cc2a1865c5
commit c9d62420c8
11 changed files with 44 additions and 10 deletions

View File

@@ -20,6 +20,7 @@ type SendMailOptions = {
text: string;
component: JSX.Element;
headCSS?: string;
unsubscribeUrl?: string;
};
/**
@@ -94,6 +95,14 @@ export class Mailer {
subject: data.subject,
html,
text: data.text,
list: data.unsubscribeUrl
? {
unsubscribe: {
url: data.unsubscribeUrl,
comment: "Unsubscribe from these emails",
},
}
: undefined,
attachments: env.isCloudHosted()
? undefined
: [