Process Email that has attachment >0

Hi All,

I wanna process Email that has at least 1 attachment. For those email that has 0 attachment just ignored. How can I check if there is any attachment in the email and process if attachment.count >1

image

thx

Hi @mason_wong

Use below syntax for checking how many attachments are there.

mailmsg.Attachments.Count = 1

Regards
Roshan

Mark as solution if found useful :slight_smile:

2 Likes

The type Arguement will be System.Net.Mail.MailMessage.
ListMailMessages in the output from Read outlook Emails - List

ā€“
Mukesh

1 Like

Hi, thank you for your answering. but Im still stuck here. can you give me an example to show how to do it? thx

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.