How Can I get Outlook emails using IMAP?

Hi Everyone,

I have tried to get Outlook emails using IMAP and getting below error. Can someone please help on this.

"Source: Get IMAP Mail Messages

Message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Exception Type: System.Net.Sockets.SocketException

RemoteException wrapping System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond "

Thanks,
Rozina

@rozina14

are you sure your email account is set to have IMAP enabled?

Thanks,
Aman Sheik

1 Like

Hi Aman,

Let me check and get back to you on this.

Thanks,
Rozina

@rozina14

Ok!!!

Hi Aman,

Account has IMAP enabled. Do we need to install outlook in the machine for this?

Thanks,
Rozina

@rozina14

If you want to get outlook mail you can use get outlook mail activity

Or else if your using Gmail then you can use IMAP

Thanks,
Aman sheik

Hi Aman,

But the requirement is to get mail from back end from outlook email account but outlook has not been installed on VM. So is it something doable?

Thanks,
Rozina

@rozina14

Yes !!! You have to install…

After that you can use get outlook messages activity to retrieve emails from outlook.

Thanks
Aman sheik

Hi Aman,

I meant can’t we use IMAP in that condition to get email?

Thanks,
Rozina

@rozina14

There is some activities for outlook only to get and send emails ( if outlook is installed)
Or else if you want with IMAP you have configure with port Numbes and all

Thanks,
Aman sheik

@aman_sheik

Everything is configured only. I have given server address: “outlook.office365.com”, Port: 993 and credentials. But still getting same error.

Thanks,
Rozina

@rozina14

How To Retrieve outlook Mail(NOT GMAIL) Using IMAP

Can you please refer this

Thanks
Aman