I need to save email attachments only if the following conditions apply for the If statement:
- “listMailmsg(N).Attachments.Count>0” AND
- the attachments need to be only of type “.pdf”
I don’t know what is the syntax to check that the filename for the attachment is “.pdf”
N is a counter for a loop which needs to go through a list of mail messages and save only pdf files for VALID EMAILS to a folder OR if there are no attachments or a VALID EMAIL then it needs to send out a message informing the user that there is no attachment.