<- Back to POP3it Pro function list
POP3it_Adv_GetAttachmentFileName
- Description
This function returns the File Name of an Attachment in the current email. If the GetRefInline parameter is set to True, it will return the File Name of Inline Images Referenced in the HTML.
- Return Type
- Text
- Format
- POP3it_Adv_GetAttachmentFileName ( Number ; GetRefInline )
- Required Parameters
- Number
The Attachment Number to return the Name of from the Current Message.
- Number
- Optional Parameters
- GetRefInline
If True, this function will return the FileName of any Inline Images Referenced in the HTML. (Default is False.)
- GetRefInline
- Related Items
- POP3it_Adv_GetAttachment, POP3it_Adv_GetAttachmentCount, POP3it_Adv_GoToMessage, POP3it_Adv_SaveAttachment
- Examples
Example 1
Code:
POP3it_Adv_GetAttachmentFileName( 2 )Result:
If there are at least two Attachments in the current email, this would return something like "Proposal.pdf".Example 2
Code:
POP3it_Adv_GetAttachmentFileName( 1 ; True )Result:
If there is a Referenced Inline Image in the current email, this would return something like "Image001.gif".