thanks, yes I am using system.net.mailmessage
I know it is talking to the email because it obtains the subject (please see the message box text with the subject “test 123”) but it just doesn’t return the attachment count.
If you use my code in the initial post, and create a folder test under your inbox, with an email with an attachment, what does your script say? Is this a bug? or is it only happening to me?
I have tested this on another 2 computers, with different email accounts, and all computers show 0 as the attachment count when the email has an attachment…
I am trying to write a script that will process emails with attachments, but it needs to first verify there is an attachment (if there isn’t put the email in cannot process folder due to missing attachment) but I have no way to check if there is an attachment. Any suggestions?