Unable to add variable of mailMessage type into Queue

Since the MailMessage class isn’t natively serializable, you’d have to serialize it yourself. Another option is to extract the parts that you want from the MailMessage object (e.g., subject and body), then save those in the queue item.
Related: How to create Orchestrator Queues for emails in a mailbox? - #6 by Mateus_Cruz

1 Like