Activity SMTP SendMail randomly throws exception "A Connection Attempt Failed Because The Connected Party Did Not Properly Respond After A Period Of Time"

Hi, i have the next problem:
I have this RPA that, during his execution, sends a few emails using UiPath.Mail.SMTP.Activities.SendMail. The problem is that sometimes, for no apparent reason, the execution stops throwing this error:

Type exception:

Exception message:
Impossibile stabilire la connessione. Risposta non corretta della parte connessa dopo l’intervallo di tempo oppure mancata risposta dall’host collegato

In english the exception message should be this:
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

I’m currently using UiPath Studio Community 2023.4.0, but this exception happened in the previous versions too.
This RPA is being executed by command line, so using a .bat and the command UIRobot.exe - file "\...json" --rdp
Since this exception happens randomly i don’t know how to replicate it using “Debug File” in UiPath Studio

Does anyone have any idea how to solve this problem?

Hi @Rodrigo_LP ,

Have you mentioned 587 for Port of activity?

Nagaraj Naik

I’m using port 25, why if I change this setting the problem should be solved?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.