The contents of queue items need to be serializable, and MailMessage
objects aren’t.
You can write your own serializer for MailMessage
or extract the information you want from the MailMessage
and then save that into the queue item: How to create Orchestrator Queues for emails in a mailbox? - #6 by Mateus_Cruz