attachments

Use this parameter to specify files that are attached to the transactional email message. The web service request includes the content of the attached file in the format that you specify.

You can provide values for multiple elements in this parameter. If the email message includes a dynamic transactional image, you specify the image label as an element in this parameter.

Parameter name
attachments
Data Type
fileName: Name of the attached file. Pass the name as a string.
label: Used to identify dynamic transactional images. If the email includes dynamic transactional images, pass the label as a string. Otherwise, pass this value as null.
label: Used to identify personalized images. If the email includes a personalized image, pass the label as a string. You can omit the label if you are not using personalized images.
fileContent: the MIME content type of the attached file. The type is always base64Binary.

For more information about using the label attribute to identify dynamic transactional images, see About Dynamic Transactional Images.