dean
  • dean
  • 51.5% (Neutral)
  • Newbie Topic Starter
10 years ago
I recently purchased the EAGetMail and it worked fine with our in house exchange server, but now, we moved to office 365 but I get the following error:

The remote server returned an error: (401) Unauthorized.

My connection string is: (for voice_support@domain.com)
Dim oServer As New MailServer("outlook.office365.com", "voice_support", "Password", True, ServerAuthType.AuthLogin, ServerProtocol.ExchangeEWS)

What do I need to do so it works with office 365.

Please help,
Thanks,
ivan
  • ivan
  • 100% (Exalted)
  • Administration
10 years ago
To access Exchange Web Services for Exchange Online, follow these steps:

1.In Exchange Control Panel, in Options, select See All Options.

2.Click Account, and then click My Account.

3.Under Account information, click Settings for POP, IMAP, and SMTP access.

4.In the list of entries, locate the server name. To access EWS for a given set of users, use the following format for the URL:
"https://" + "Server name" + "/EWS/Exchange.amsx"
https://pf04.outlook.com/.../Exchange.asmx 


Then you need to input
Pf04.outlook.com as the server address.
dean
  • dean
  • 51.5% (Neutral)
  • Newbie Topic Starter
10 years ago
Thanks for your response. I will try that and let you know.
Thanks,
Dean

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.