Email Attachment

Hello…when I use the command get outlook messages, the output is a list of mail messages. I am subsequently iterating through this list, but I dont know how to access each message in the list if that makes any sense. I was wondering if variable type is an issue here, and how to resolve it

if so, what variable would be preferred for this

In the for each loop @csewall3,
change the item type to mailmessage by using browse types

3 Likes

would it be a system.web.mail.mailmessage? or system.net.mail.mailmessage

Find the screenshot below.

Regards,
Ahtesham

thank you very much! this resolved all the errors

1 Like

:+1:

Happy to help @csewall3

1 Like