Documentation / @zerotal/notifications / MailAttachment
Interface: MailAttachment
Defined in: notifications/src/drivers/MailDriver.ts:23
A file carried alongside the message body.
Properties
filename
filename:
string
Defined in: notifications/src/drivers/MailDriver.ts:25
Name the recipient sees.
content
content:
string|Uint8Array<ArrayBufferLike>
Defined in: notifications/src/drivers/MailDriver.ts:27
File bytes, or a string for text content.
contentType?
optionalcontentType?:string
Defined in: notifications/src/drivers/MailDriver.ts:29
MIME type. Default: application/octet-stream.
inline?
optionalinline?:boolean
Defined in: notifications/src/drivers/MailDriver.ts:34
Reference the part from the HTML body instead of listing it as a download.
Set cid too and use <img src="cid:the-id">.
cid?
optionalcid?:string
Defined in: notifications/src/drivers/MailDriver.ts:36
Content-ID for an inline part, without the angle brackets.