This function returns the list of email in the specified folder.
<DllImport("SapphireMail.dll")> _ Public Function sListMail(ByVal sService As String, ByVal lFolder As Integer, _ ByRef lEntries As Integer, ByVal sSubjects As String, ByVal sAttachFlags As String, _ ByVal sReadFlags As String, ByVal lLicence As Integer) As Integer End Function
Parameters
sService
A string specifying the name of the service account to obtain the list of emails from.
lFolder
An integer specifying the folder to use. 1 = Inbox, 0 = Drafts.
lEntries
An integer variable used to return the number of emails returned.
sSubjects
A string variable used to return the email subjects. Each subject is seperated by the bar (|) character.
sAttachFlags
A string variable used to return whether the emails have attachments, seperated by the bar (|) character.
sReadFlags
A string variable used to return whether the emails have been read, seperated by the bar (|) character.
lLicence
An integer specifying the Sapphire Mail licence number.
Return Values
The return value can be ignored for this function.