POP3it Pro

Email downloading made easy.

<- Back to POP3it Pro function list

POP3it_Adv_GetAttachmentCount

Description

This function returns the number of Attachments in the current email. If the GetRefInline parameter is set to True, this function will return the number of Inline Images Referenced by the HTML in the current email.

Return Type
Number
Format
POP3it_Adv_GetAttachmentCount ( GetRefInline )
Optional Parameters
  • GetRefInline

    If True, this returns the Number of Inline Images in the HTML in the Current Message, otherwise it returns the Number of normal Attachments. (Default is False.)

Related Items
POP3it_Adv_GetAttachment, POP3it_Adv_GetAttachmentFileName, POP3it_Adv_GoToMessage, POP3it_Adv_SaveAttachment
Examples

Example 1

Code:

POP3it_Adv_GetAttachmentCount

Result:

This would return 2 if there are two Attachments in the current email.

Example 2

Code:

POP3it_Adv_GetAttachmentCount( True )

Result:

This would return 1 if there is one Referenced Inline Image in the current email.