Unable to add variable of mailMessage type into Queue



I am unable to add variable of mailMessage type into Queue whereas i am able to add basic types like string and rows.

So I tried a workaround of converting the mailMessage into string by serializing using jsonConvert function and adding into queue. But when I deserialize and try to extract into mail format, it does’nt support. Has anyone faced this issue before or successfully added mails as queue items and processed pls share your solutions.

Thanks in advance!



May I know the reason why you need to add the mail messages to Queue, instead of that you can save the mail messages in a folder and you can save each mail message path into the queue. This will help you to continue with processing queue items one by one. you have full track as well.


Thanks @sarathi125 for the workaround.