Mail Function Reference

sSaveAttachment

Mail Function Reference

This function saves an attachment to file.

Declare Function sSaveAttachment Lib "SapphireMail.dll" ( _
    ByVal sService As String, _
    ByVal lFolder As Long, _
    ByVal lReadEntry As Long, _
    ByVal sAttachment As String, _
    ByVal lLicence As Long) As Long

Parameters

  sServer
    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.
  sAttachment
    A string specifying the destination location and filename of the attachment.
  lLicence
    A long specifying the Sapphire Mail licence number.

Return Values

  The return value can be ignored for this function.