Skip to main content

addAttachment()

Last updated 3/02/2024

The addAttachment() is a function on the Five object and can be called during a Mail Merge action being executed. It is only applicable in a function attached to the Do Merge Record event of the Mail Merge record. It is used to add attachments to the email being created before the mail is sent.

Available
Server


Function Signature
addAttachment(attachment: string, name: string) : FiveError;

ParameterTypeDescription
attachmentstringA data URI encoded attachment as a string
namestringName of the attachment to display in the email

Examples

addAttachment()