none
[E2010] [EWS] [C#] [Windows 2008 R2]: Sent Items flolder when sending a message with impersonation RRS feed

  • Question

  • I've seen a number of questions like this one, but no really good answers.

    I have a requirement to send an e-mail message using Exchange using impersonation. The message must appear in the impersonated user's "Sent Items" folder after the message is sent.

    I'm able to send the e-mails OK, but I'm unable to get them to show up in the user's Sent Items folder. I'm calling message.SendAndSaveCopy to send the mail.

    Any tips would be appreciated.


    Bryan Slatner


    Tuesday, March 11, 2014 2:07 AM

All replies

  • You might want to post the whole code fragment your using including the way your using impersonation.

    Also have you tried just using the overload to specify the folder the message should be saved in eg

    FolderId fldid = new FolderId(WellKnownFolderName.SentItems,"Mailbox@domain.com");
    email.SendAndSaveCopy(fldid);
    Cheers
    Glen

    Tuesday, March 11, 2014 3:07 AM