Mail Function Reference

sSaveAttachment

Mail Function Reference

This function saves an attachment to file.

<DllImport("SapphireMail.dll")> _
Public Function sSaveAttachment(ByVal sService As String, ByVal lFolder As Integer, _
ByVal lReadEntry As Integer, ByVal sAttachment As String, ByVal lLicence As Integer) As Integer
End Function

Parameters

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

Return Values

  The return value can be ignored for this function.