none
How to send messages to a Custom Message Folder? [EWS managed Api] RRS feed

  • Question

  • Hi there, Emails are usually created in Inbox folder via EWS.. I want to create message in Custom Folder ? how do I achieve this ?  I have the following code to send message. This message is sent to the Inbox folder by default. I want the messages to be sent to the custom Folder I have created. 

     EmailMessage email = new EmailMessage(EWSservice.GetEWSService());
                                        email.Subject = message.Subject;
                                        email.ToRecipients.Add("id");
                                        email.Body = message.TextBody;
                                        email.Body.BodyType = BodyType.Text;
                                        email.Body = message.HTMLBody;
                                        email.Body.BodyType = BodyType.HTML;
    email.Send();

    Monday, March 16, 2015 6:47 PM

Answers

All replies