Mail Function Reference

sReadMail

Mail Function Reference

This function retrieves the email information and body.

Declare Function sReadMail Lib "SapphireMail.dll" ( _
    ByVal sService As String, _
    ByVal lFolder As Long, _
    ByVal lReadEntry As Long, _
    ByVal sSenderName As String, _
    ByVal sSenderEmail As String, _
    ByVal sSubject As String, _
    ByRef lAttachment As Long, _
    ByVal sBody As String, _
    ByVal lLicence As Long) As Long

Parameters

  sService
    A string specifying the name of the service account to obtain the list of emails from.
  lFolder
    A long specifying the folder to use. 1 = Inbox, 0 = Drafts.
  lReadEntry
    A long 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
    A long 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
    A long specifying the Sapphire Mail licence number.

Return Values

  The return value can be ignored for this function.