Salesforce

MailFileSave (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

MailFileSave (Magic xpa 4.x)

Lets you save a message attachment to a file on a disk.

Syntax:

MailFileSave(mail-index, file-index, save-path, overwrite)

Parameters:

mail-index: number, index of mail in the mail box

file-index: number, index of attachment in the message

save-path: string, filename and path or only the path

overwrite: Boolean, overwrite file if already exists

Returns:

0 - Success

<0 - Error code

Note:

When providing only a path name in the save-path parameter, the function saves the attachment under its defined name.

Setting file-index as zero instructs the function to extract all the message attachments to the given file or path name.

See also:

Mail functions

The Online and Rich Client Samples projects (program EL04 and REL04)

Reference
Attachment 
Attachment