| Author |  | 
      
        | jim Newbie
 
  
 
 Joined: 28 June 2017
 Location: United States
 Online Status: Offline
 Posts: 2
 | 
          Hi,
           | Posted: 28 June 2017 at 7:57am | IP Logged |   |  
           | 
 |  Do you have a short example on how to connect to an office 365 server with ews?
 
 I'm newing up an instance then calling set credentials and getting:
 
 "An attempt to call a method of an object in the inappropriate state."
 
 Not sure what im missing here.
 thanks.
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          Yes, you can find an example at this page.
           | Posted: 28 June 2017 at 7:59am | IP Logged |   |  
           | 
 |  
 Hope it helps.
 
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | jim Newbie
 
  
 
 Joined: 28 June 2017
 Location: United States
 Online Status: Offline
 Posts: 2
 | 
          Thanks, I just needed to call init on the object first.
           | Posted: 28 June 2017 at 8:04am | IP Logged |   |  
           | 
 |  
 
 | 
       
        | Back to Top |     | 
       
       
        |  |