MailOpenInBox

sql

FUNCTION MailOpenInBox(OUT mailbox HANDLE) RETURNS INT;

Parameters

mailbox output parameter, mailbox handle

Since version

6.0f

Description:

Opens the mailbox (in the selected profile) of the mailing system and assigns the mailbox handle into the mailbox parameter. This handle is used as input parameter for other functions working with the mailbox.

Only one thread may be working wit the mailbox at a time. If you're trying to access an opened mailbox from another thread, the 520 (MAIL_BOX_LOCKED) error will occur.

Function value:

This function returns 0 if successful, the error number otherwise.

Example

Receiving example

See