First of all, I tried to configure my own Outlook application to access Gmail through POP or IMAP, and failed in both cases. The configurations for SMTP were done using SSL or TLS, with the right ports, according to Gmail’s helps above.
(I think the failure may be due to my company’s network. But still, I am able to access Gmail through the website).
So, I kindly ask you for some enlightenment about this.
Can someone send an email through Gmail account using this activity, and post here the configs?
To conclude this thread: the problem I was facing back then was related to my corporate network.
(The network blocks any mail packages that are not originated from an Outlook or Lotus client).
If you configure UiPath accordingly (see the tutorial) it can send emails through any mail server.
I’m facing the same issue frequently within the corporate network. I don’t know what’s wrong. Please share the solution if you have had done it ever.
Error :
Main has thrown an exception
Source: Send SMTP Mail Message
Message: Unable to read data from the transport connection: 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: IOException
System.IO.IOException: Unable to read data from the transport connection: 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. —> 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
at System.Net.Sockets.Socket.Receive(Byte buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte buffer, Int32 offset, Int32 size)
— End of inner exception stack trace —
at UiPath.Mail.Activities.SendMailActivity.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)