InitWBMailEx

sql

FUNCTION InitWBMailEx(IN profile CHAR(63), IN recvPassword CHAR(255), IN sendPassword CHAR(255)) RETURNS INT;

Parametry

profile a name of the profile for enabling mail
recvPassword a password for an access to the mailbox(POP3)
sendPassword a password for sending e-mails authorization (SMTP)

Since version

10.0.2

Popis

Initializes the electronic mail from 602SQL. According to the specified profile the mail system (MAPI or SMTP/POP3) will be made accessible. Two passwords can be passed to the function (if post server requires it): a password for sending e-mails using SMTP protocol (parameter sendPassword) and a password for an access to a mailbox using POP3 protocol (parameter recvPassword).

A name of the profile defined in the Control Panel (folder Local Settings -> Mail profiles) or using the MailCreateProfile function must be used as the profile. If the password is set in the profile (Windows), pass an empty string or nil (NULL) as the password.

Function value

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

Example

Sending example, Receiving example

Viz