Constructors
constructor
- new Attachment(Name, Content, ContentType, ContentID?, ContentLength?): 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
Param: Name
name of the attachment, for example book.pdf
Param: Content
Base64 encoded content, for example: fs.readFileSync('/Folder/book.pdf').toString('base64')
Param: ContentID
id of the attachment, in case we are referencing it, for example: cid:123book.pdf
Param: ContentType
content type (json, image, etc)
Param: ContentLength
length of the message