Salesforce

MailDisconnect (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

MailDisconnect (Magic xpa 3.x)

Closes a connection to an email server.

Syntax:

MailDisconnect(type, delete-all)

Parameters:

Type: number, 1 - mail send server, 2 - mail receive server

Delete-all: Boolean, delete all emails from mail box

Returns:

0 - Success

<0 - Error code

Note:

When disconnecting from a POP3 mail server and setting the Delete All parameter to Yes, only the messages that were received by the connection to the POP 3 mail server are deleted. When disconnecting from an IMAP mail server and setting the Delete All parameter to Yes, all the existing messages, including both new and seen messages, are deleted.

See also:

Mail functions

The Online and Rich Client Samples projects (program EL01, EL02, REL01and REL02)

Reference
Attachment 
Attachment