Salesforce

MailBoxSet (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

MailBoxSet (Magic xpa 3.x)

Lets the developer switch to another mailbox of a currently connected IMAP mail server.

Syntax:

MailBoxSet(mailbox name)

Parameters:

mailbox name: a string representing the mailbox that you want to handle.

Returns:

Numeric – The function returns the number of documents that exist in the specified mailbox. If the function fails to access the mailbox, for example when the given mailbox name does not exist, it returns a negative number that represents the error code.

Example:

MailBoxSet('Deleted') will set the 'Deleted' mailbox as the active mailbox. Any other mail-related function that handles the content of the mail account relates to the 'Deleted' mailbox.

Note:

This function is a server-side function.

See also:

Mail functions

The Online and Rich Client Samples projects (program EL03 and REL03)

Reference
Attachment 
Attachment