Mail Function Reference

sReadMail

Mail Function Reference

This function retrieves the email information and body.

<DllImport("SapphireMail.dll")> _
Public Function sReadMail(ByVal sService As String, ByVal lFolder As Integer, _
ByVal lReadEntry As Integer, ByVal sSenderName As String, ByVal sSenderEmail As String, _
ByVal sSubject As String, ByRef lAttachment As Integer, ByVal sBody 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.
  lReadEntry
    An integer specifying the index of the email to read.
  sSenderName
    A string used to return the sender's name.
  sSenderEmail
    A string used to return the sender's email address.
  sSubject
    A string used to return the email's subject.
  lAttachment
    An integer used to return whether the email has an attachment or not. 1 = Yes, 0 = No.
  sBody
    A string used to return the email's body.
  lLicence
    An integer specifying the Sapphire Mail licence number.

Return Values

  The return value can be ignored for this function.