Unable to send email through "get IMAP mail message"


#1

I have configured my gmail account as per https://www.uipath.com/kb-articles/enabling-email-activities-for-gmail.
I didn’t enable 2-way authentication but enabled less secure apps.

When I try to connect to this gmail account through UIPath, I am getting the below error message.

OpenMailBox has thrown an exception

Source: Get IMAP mail messages

Message: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server

Exception Type: SocketException

System.Net.Sockets.SocketException (0x80004005): This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server
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)

Kindly advise. Thanks


#2

@PinknPurple which port number you are giving


#3

I tried port number 143, 993 and 995. All same response.


#4

@PinknPurple https://myaccount.google.com/lesssecureapps

Enable less secure app


#5

Already done that, still same.