actually start on mailing, fix email regex
Some checks failed
Code quality checks / biome (push) Failing after 22s
Some checks failed
Code quality checks / biome (push) Failing after 22s
This commit is contained in:
parent
00a7417936
commit
86be889ede
17 changed files with 349 additions and 32 deletions
|
@ -13,30 +13,4 @@ type MailerConfig = {
|
|||
replyTo: string;
|
||||
};
|
||||
|
||||
type EmailOptions = {
|
||||
to: string | string[];
|
||||
subject: string;
|
||||
text?: string;
|
||||
html?: string;
|
||||
from?: string;
|
||||
replyTo?: string;
|
||||
cc?: string | string[];
|
||||
bcc?: string | string[];
|
||||
attachments?: EmailAttachment[];
|
||||
};
|
||||
|
||||
type EmailAttachment = {
|
||||
filename: string;
|
||||
content?: Buffer | string;
|
||||
path?: string;
|
||||
contentType?: string;
|
||||
cid?: string; // content-ID for embedded images
|
||||
};
|
||||
|
||||
type EmailResult = {
|
||||
success: boolean;
|
||||
messageId?: string;
|
||||
error?: string;
|
||||
};
|
||||
|
||||
export type { MailerConfig, EmailOptions, EmailAttachment, EmailResult };
|
||||
export type { MailerConfig };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue