Skip to content

Message.Attach

Overview

Message Message.Attach ( fileName, [ mimeType ], content )
Adds a new attachment with base64 encoding.

Arguments

String fileName Name of file attachment.

String mimeType Mime type of attachment. If specified as empty string or null value "application/octet-stream" mime type is used.

String content Base64 encoded file content.

Remarks

Examples

Attach file

message.Attach('myFile.bin','application/octet-stream','aGVsbG8gd29ybGQ=');

See Also