Hi All,
I would like to create and send an email as a delegate using EWS Managed API for that i have crated one user as a delegate to that mailbox owner.
after adding user as delegate, when i try to create an email The EmailMessage class taking only FolderId as parameter but not taking Mailbox object as parameter. But in web reference they said that EmailMessage taking FolderId and Mailbox object as parameter.
EmailMessage message = new EmailMessage(service); message.Subject = "Company Soccer Team"; message.Body = "Are you interested in joining?"; message.ToRecipients.Add("sadie@contoso.com"); message.Save(new FolderId(WellKnownFolderName.Drafts, new Mailbox("primary@contoso.com")));
https://msdn.microsoft.com/EN-US/library/office/dn641963(v=exchg.150).aspx#bk_createewsma
could you people please help me on this?
Thanks
Naresh