Mail Function Reference

AddMailAccount

Mail Function Reference

This function create a new mail account on the device.

<DllImport("SapphireMail.dll")> _
Public Function AddMailAccount(ByVal lType As Integer, 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 Integer) As Integer
End Function

Parameters

  lType
    An integer 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
    An integer specifying the Sapphire Mail licence number.

Return Values

  Zero indicates success. Non-zero indicates failure.