Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

How do I decode an S/MIME e-mail message with EWS (E2010)

$
0
0

When I get an Email:

                PropertySet itempropertyset = new PropertySet(BasePropertySet.FirstClassProperties)
                itempropertyset.Add(ItemSchema.MimeContent);
                itempropertyset.Add(ItemSchema.Attachments);
                itempropertyset.RequestedBodyType = BodyType.Text;
                src = _Exchange.LoadPropertiesForItems(findMails, itempropertyset);

and the message was sent with S/MIME, how do I get the Text decoded?

Assume: EmailMessage em;

em.Body.Text is null

em.MimeContent.Content is a byte array, but I need to decode this



Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>