C# Remote connecting to Outlook mailbox in the cloud - outlook

Is this possible to do using ASP.Net in C#?
We have exchange in the cloud and access using outlook 365.
If it is possible, how do you connect and can you access mail and mail attachment from a remote application?

Use the Exchange Web Services API: http://msdn.microsoft.com/en-us/library/office/dd877045(v=exchg.140).aspx

Related

How to connect to an imap connector from a windows service using OAuth2

We have a windows service that collects mail from via an imap connector and then processes that email and attachments into a database. Is there a way that we can do this using OAuth2 when exchange online removes support for basic authentication? There is no user interface to the service or user access to teh system when it is running beyond the start and stop of the service.
We are currently using Chilkat's excellent Imap component.
Yes, Microsoft have finally released support and documentation for this in Exchange Online. See the following Microsoft document:
Authenticate an IMAP, POP or SMTP connection using OAuth

Outlook 2010 end users + Exchange online server allows Graph API usage?

I'm trying to connect an application I've written with an old on-premise Exchange 2010 server. Obviously this is not supported, I was wondering if Outlook 2010 end users + Exchange online server would allow the use of Microsoft Graph API?
If the Mailbox is an Office365 Mailbox (or you've configured hybrid https://blogs.msdn.microsoft.com/deva/2019/03/16/deep-dive-how-to-configure-exchange-on-premise-server-hybrid-integration-with-office-365-test-rest-api-calls/) then you can use the Graph API to access that Mailbox. The version of Outlook doesn't really matter as the API is strictly service side, but depending on what your actually doing client side you may find a lot client side integration pain and you would be better to upgrade the latest version of Outlook on the clients. That would give you more options when you redevelop your application as you can make use of the new Addin's platform etc.

Authentication/Authorization For Self-Hosted Exchange Servers

This page states that before an application can access the API (I'm particularly interested in the Calendar API), it must be registered with Azure AD. Is this also true for organizations that may host their own Exchange servers?
Could someone provide a breakdown of what's necessary for me to get started with accessing the API to access the users' Calendar? I'm aware of the API reference, but I'm not entirely sure what's necessary to do before I can use the API.
That page is for Office365, not self hosted ones.
You can access your local/self hosted Exchange server with Exchange Web Services by using username/password, or even your local AD if you set it up correctly.
The API it is talking about is not available to on-premise Exchange Server, it is only available to Exchange Online in Office 365. This may change in the future, but currently you cannot use it in on-premise. Exchange Web Services is the way to go for on-premise.

Configuring CRM with an Exchange Server outside O365 using SSS

I have a requirement where I need to configure my CRM Online with an Exchange Server which is hosted out of my organization's Office 365 to sync Emails for Incoming and Outgoing profiles.
Of the steps, I understand that I need to setup and Email Server Profile of type Exchange that has Server Location pointing to the Exchange Server which I have been using currently. However, I get an error saying that the configuration is invalid and I don't get to save the Incoming and Outgoing server locations. Also, do I need authentication for the same? If yes, of whom should it be? The current Incoming and Outgoing is set to the URL. (Without '/EWS/Exchange.asmx' which is used by default for hosting it on O365.
Any help / links to blogs that effectively explain this would really help.
Thanks !
Supported email service configurations for server-side synchronization
CRM Online only supports Server Side Synchronization with:
Exchange Online in the same tenant in Office365 (mail, tasks, etc.)
Gmail or Yahoo! Mail via POP3/SMTP (mail only)
Anything else is not (yet1) supported.
1 Online to On-Premise SSS is supposed to become supported at some point in the future
There are three ways of handling email processing in CRM:
Server-side synchronization
CRM for Outlook
Email Router
Server-side synchronization does not support hybrid deployments (e.g. CRM Online with Exchange On-premise), as Alex mentions.
I suggest looking into the Email Router. You install it on a machine which is then responsible for synchronizing email messages between CRM and Exchange. For an in-depth explanaion, see Email Router Demystified.
If you also need to synchronize Outlook contacts, tasks and appointments have a look at CRM for Outlook.

Test Exchange EWS on public server

Is there any public Exchange server (emulator) that I can use to test / experiment with my Exchange Web Services implementation?
I doubt there is anything free. It will be much easier to create your own VM. You'll need Windows Server 2003 with Domain Controller role and Exchange 2007. Installation is pretty trivial.
After you've done it, go to Exchange Management Console to create a mailbox, then navigate to https://server/owa to create some messages and https://server/ews/exchange.asmx to access the EWS web service.

Resources