Load a file into Uipath and convert to mailMessage

I have a business process in which we are downloading emails from a web portal and accessing the data and attachments.

I wanted to know if there’s a way to convert a local file into a MailMessage object that Uipath can see and manipulate?

I have already tried copying it into the local inbox and accessing it from there, but I wanted to explore other options

I’m having the same business case now.
Did you find a good solution?


Hi @melkinsblackbook

MailMessage is a .Net class. In order to create a object of MailMessage class you have to initialize all fields/ properties of the object. For MailMessage.Body, you can dynamically set text from a path, using Get Text Activity.

Direct conversion to MailMessage object is not possible.