Exchange 2013 101 Code Samples

The samples in the Exchange 2013: 101 code samples package show you how to use the Exchange Web Services (EWS) Managed API to perform specific tasks with mailbox data on an on-premises Exchange server, Exchange Online, or Exchange Online as part of Office 365.

C# (4.6 MB)
 
 
 
 
 
4.5 Star
(19)
64,081 times
Add to favorites
12/19/2013
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Can this be used to gather various statistics from Exchange Server?
    1 Posts | Last post November 23, 2017
    • Things like mailbox, connections, address book, inbound and outbound mail count, etc
  • Category Creation Using EWS
    1 Posts | Last post September 04, 2017
    • Hi, 
      
      Is there any sample code for Creating Category using EWS, My outlook version is 2016.
      
      Regards,
      Shiva K
  • PowerShell
    1 Posts | Last post July 19, 2017
    • Is there any documentation for PowerShell?
  • Deleting CRM Contacts for all Outlook users
    1 Posts | Last post May 03, 2017
    • Is there a way to identify all contacts pushed to Exchange by CRM and delete them?
  • Device Provisioning on Exchange 2013
    1 Posts | Last post March 29, 2017
    • Is there any C# sample code available that will provision active sync devices to the Exchange server. Something equivalent to the sample code found here
      
      https://code.msdn.microsoft.com/Exchange-2010-Implementing-400b9507/sourcecode?fileId=61342&pathId=1826511278
      
      That will work for Exchange 2013 and above?
  • How to send emai from a shared mailbox in C#
    1 Posts | Last post January 27, 2017
    • I'm having difficulty finding samples on sending email using a shared mailbox. I'm planning to send to multiple people.
      What class member from the library and steps to be done to navigate to the Shared Mailbox name and make it as the sender of the email.
      so far here is what I started. Thanks for your help.
        Outlook.Application oApp = new Outlook.Application();
       Outlook.NameSpace oNS = oApp.GetNamespace("mapi");
      oNS.Logon(Missing.Value, Missing.Value, true, true);
      
                      // Create a new mail item.
                      Outlook.MailItem oMsg = (Outlook.MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);
      
                      // Set the subject.
                      oMsg.Subject = "Send Email";
      
          Outlook.
                      // Create a new mail item.
                      Outlook.MailItem oMsg = (Outlook.MailItem)oApp.CreateItem         (Outlook.OlItemType.olMailItem);
      
                   
      
                      // Set the subject.
                      oMsg.Subject = "Send Email in HTML format";
      
      
      Lastly if I switch to use EWS instead if this cannot be done with my approach, what are steps to get there?
      
      
      
      
      
  • Access shared MailBox using EWS
    2 Posts | Last post September 08, 2016
    • Hi
      
      Is there any way to access a shared MailBox from C# code using EWS api.
      I tried it by giving the shared mail box email and my credentials but it is getting my default mailbox.
      
      Please share any articles or any sample code if possible.
      
      Thanks in advance
    • static ExchangeService service;
      service = new ExchangeService(ExchangeVersion.Exchange2010);
      service.Url = new Uri("your asmx url");
      service.Credentials = new WebCredentials(your emailid, Password);
      Mailbox EMailBox = new Mailbox(your share mail box id);
  • How to get oAuth token to read mail from O365 mailbox programatically c#
    1 Posts | Last post September 08, 2016
    • How to read mails from O365 mailbox with access token programatically in c#.Our program was working earlier once the Mailboxes are upgraded to Office  365 with Token we are unable to read mails.pleas esuggest.
  • We are using https://outlook.office365.com/EWS/Exchange.asmx to read mail from generic mailboxes.but now they have updated these mailboxes with RSA secure id authentication. How to read mails by bypassing this security or how to get RSA token through
    1 Posts | Last post August 19, 2016
    • We are using https://outlook.office365.com/EWS/Exchange.asmx to read mail from generic mailboxes.but now they have updated these mailboxes with RSA secure id authentication. How to read mails by bypassing this security or how to get RSA token through EWS
  • How to get Linked Master Account value
    1 Posts | Last post July 13, 2016
    • .\Exchange 2013 101 Code Samples\Exchange 2013 Get user information programmatically
      
      In addition to 97 attributes as such a sample, is there any ways to get Linked Master Account value ?
      LinkedMasterAccount                    : HO\John
      LinkedMasterAccount                    : IT\Peter
      
1 - 10 of 20 Items