Constructors
constructor
- new Attachment(Name: string, Content: string, ContentType: string, ContentID?: null | string, ContentLength?: number): Attachment
Parameters
Name: string
Content: string
ContentType: string
ContentID: null | string = null
Optional ContentLength: number
Properties
ContentID
ContentID: null | string
Optional ContentLength
ContentLength?: number
ContentType
ContentType: string
Attachment content
name of the attachment, for example book.pdf
Base64 encoded content, for example: fs.readFileSync('/Folder/book.pdf').toString('base64')
id of the attachment, in case we are referencing it, for example: cid:123book.pdf
content type (json, image, etc)
length of the message