Convert String to System.Net.Mail.MailMessage

Hi Guys,
How to convert a string to System.Net.Mail.MailMessage

Regards,
Mahaling Patil

Hi,

Do you want that string to Mail Body or to Mail Message?

@MahalingPatil

I think you want to store mailbody in a string .Hence you need to use String Variable=(MailMessageVariable).Body

if Not than please Explain the question.

Regards,

1 Like

@Himanshu.joshi
I am storing my mail object as string in the Orchestrator and retrieving object as string from it.Then i have to read details from the object.

Regards,
Mahaling Patil

Any update?

I want to get the same thing, convert string to Mail Message, not the other way around nor mail body.
I have emails saved in .msg and I’d like the robot to save these email attachments one by one, and then rename, etc.

Any Update on this Brother, as currently I’m looking the same.

You can’t. String is a simple datatype. Mailmessage is a complex datatype.

You can’t store mailmessages (complex datatypes) in Orchestrator Queues.