This function create a new mail account on the device.
Declare Function AddMailAccount Lib "SapphireMail.dll" ( _
ByVal lType As Long, _ ByVal sMailAccount As String, _ ByVal sMailServer As String, _ ByVal sUserName As String, _ ByVal sPassword As String, _ ByVal sSmtpHost As String, _ ByVal sReturnAddress As String, _ ByVal lLicence As Long) As Long
Parameters
lType
A long specifying what type of mail account to add. 0 = POP3, 1 = IMAP.
sMailAccount
A string specifying the name of the account.
sMailServer
A string specifying the POP3 mail server address.
sUserName
A string specifying the email account user name.
sPassword
A string specifying the email account password.
sSmtpHost
A string specifying the SMTP mail server address.
sReturnAddress
A string specifying the return email address for the acocunt.
lLicence
A long specifying the Sapphire Mail licence number.
Return Values
Zero indicates success. Non-zero indicates failure.