Hwo to convert transaction item (Object) to Mail Message?

I have a scenario where I will be adding the mail message into Queues and from there I will be fetching it in the other process through Get transaction item

  1. I am reading the mails through send smtp and using for loop , I am iterating and adding into the queue using add to queue Item and in collection type, I have mentioned as Mailmessgae

  2. while I am retrieving using get transaction item, I am able to get it only as Object or string. How will I be able to use it as mail message ?

Please let me know a possible solution for this


The problem is that currently the contents of queue items need to be [serializable into a JSON string ]and MailMessage is not, so extract all the information from mail and then add the items to the queue.

Refer the below post for more reference.

1 Like

Hi Vishnu,

Could u pls let us know how you had added MailMessage into Orchestrator Queues?



If you are using latest version then you can do like this to add mail messages into Queue.

Hi Sarathi,

I tried using that but then I was getting below error:
Add Queue Item: Could not determine JSON object type for type System.Net.Mail.MailMessage.

Even Serialization wasn’t possible for MailMessage .

Any other work around?

Pravyn Reddy


Which version you are using studio and orchestrator?


You wont be able to add mailmessage to Queue because it is not serializeable. what you can do is, you can extract informations like Body , Subject and put it on queue and can work on it.