downloadAttachment
Usage
const attachment = receivedEnvelope.content.attachments[0];
const fileBuffer = await mail.downloadAttachment(attachment);Returns
Parameters
attachment
Last updated
Downloads an attachment of a specific mail.
const attachment = receivedEnvelope.content.attachments[0];
const fileBuffer = await mail.downloadAttachment(attachment);Promise<ArrayBuffer>
A promise that resolves to an array buffer of the downloaded file.
Type RemoteFileInfo
The information about the attachment that needs to be downloaded.
Last updated
