This function retrieves the name of the attachment in the email.
Declare Function sGetAttachmentName 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
sService
A string representing the name of the mail account to lookup from.
lFolder
A long representing the folder to retrieve the email from. 1 = Inbox, 0 = Drafts.
lReadEntry
A long representing the index of the email to read the attachment name from.
sAttachment
A string variable used to store the returned attachment name.
lLicence
A long specifying the Sapphire Mail licence number.
Return Values
The return value can be ignored for this function.