Packages@robojs/auth
MailAttachment
Type Alias: MailAttachment
type MailAttachment = {
content: Buffer | string;
contentType: string;
filename: string;
};Attachment payload supplied to a mailer when sending transactional emails. Not every provider supports attachments—consult your mailer for limits.
Type declaration
Example
{ filename: 'receipt.pdf', content: pdfBuffer, contentType: 'application/pdf' }