troubleshooting Question

Need help with the Exchange 2010 Managed Web Services

Avatar of curtrobinson106
curtrobinson106Flag for United States of America asked on
ExchangeOutlook
4 Comments1 Solution519 ViewsLast Modified:
I have used WebDAV to create messages directly into an Exchange Mailbox in the past.  Using some extended attributes I was able to make it also appear that the message had been sent, relayed, and was in a mailbox's inbox.  You might consider this a spoofed message, but the purpose is for creating email versions of compliance data for achiving (such as taking Microsoft OCS conversations and converting it to an email message for archival).

I'm trying to wrap my head around how to do this with the new Exchange 2010 API.  Creating a new draft message is easy:

EmailMessage message = new EmailMessage(service);
message.Subject = "Hello from the EWS Managed API";
message.Body = "Now that's easy!";
message.ToRecipients.Add("someone@fabrikam.com");
message.Save();

Previously, I'd set values like this to get my desired result:

Property myProperty = new Property(MessageProperty.Read.Name, MessageProperty.Read.Namespace, "0"); //try values 1,2,4,8

or

Property myProperty = new Property(MessageProperty.Received.Name,MessageProperty.Received.Namespace,"From MyProgram by MyProgramServer; " + ReceivedDate);

I just can't figure out how to set thes properties with the new API...

Thanks in advance..
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros