Email automation

Hi,

I am trying to extract mail from gmail and display them.But it is showing me some error.
Can anyone please help me solve this issue.

Regards
Sushree

\MailAutomation has thrown an exception

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

Source: Get IMAP mail messages

Exception Type: SocketException

System.Net.Sockets.SocketException (0x80004005): 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
at UiPath.Mail.Activities.GetMailActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Hello!

It’s seems like a connection error. Are you sure that the port 993 is opened? Are you using proxy?

Try to test your connection route using tracert or netstat commands and make sure that isn’t a connection issue.

Regards,

1 Like

Have you tried using the Get POP3 activity instead?

1 Like

And also Gmail is configured to use 995 not 993.

https://www.lifewire.com/what-are-the-gmail-pop3-settings-1170853

2 Likes

Main.xaml (6.2 KB)

hi ,

I tried the get pop3 option with all the required settings as mentioned , but still it is not giving any output.

Thanks and Regards

Sushree Suravi

Hi @richarddenton,
I solved the connection problem .
Thanks for your help.
Regards
Sushree suravi

I am still Facing issues in getting my g-mail via IMAP

I have checked all settings and made sure all is good. Still i am unable to retrive my e-mails via UI path

Please help.

@B_R_Pawan_Kumar
In order to read mails from gmail, you have to make sure that it allows less secure apps to access your account.
https://support.google.com/accounts/answer/6010255?hl=en

hi sushree how did you solve that issue ? am facing same issue. imap setting.

These are some the common causes of error 0x80004005
Take a look at this fix: https://errorcodespro.com/fix-error-code-0x80004005-windows-7-10/

Remember to remove all the security settings from your email that you are going to communicate . Use gmail settings to change the security configuration. Then try it.

Thanks
Sushree

Just Try your gmail with App Password service

Hi,

      Could you please able to give exact Solution for this  Problem.

Thank you