none
Mail is not coming in Sent Items of Outlook when send using Exchange Web Services RRS feed

  • Question

  • Hi Team,

    I am developing one application using "Exchange Web Services" i am sending mail item to individual id.

    But we are not able to see the mail in the Sent item if we login to that Id in outlook.

    We are using Shared Mailbox id to send the e-mails.

    Is it expected behaviour?.

    Thanks

    Jaspreet SIngh

    Friday, February 28, 2014 7:38 AM

All replies

  • What does your code look like ?

    It should work okay but you need to specify that you want the messages saved to the shared Mailbox sent Items folder otherwise it will default to the Security contexts mailbox. eg

                EmailMessage em = new EmailMessage(service);
                em.Sender = new EmailAddress("sharedMailbox@domain.com");
                em.Subject = "From Shared Mailbox";
                em.ToRecipients.Add("desination@mailbox.com");
                FolderId SentFolder = new FolderId(WellKnownFolderName.SentItems,"sharedMailbox@domain.com");
                em.SendAndSaveCopy(SentFolder);
    Cheers
    Glen

    Monday, March 3, 2014 5:20 AM