Send SMTP Mail Message Sometimes Hangs And Does Not Complete

What to do when Send SMTP Mail message sometimes hangs and does not complete ?

Issue Description:_ Robots freeze on Virtual Machines without throwing an error. Send SMTP Mail Message is being run at the time.

Resolution: The issue will be fixed from UiPath Robot or Assistant 22.4

Workaround #1:

  • Kill the Assistant process to make UiPath.Service.UserHost.exe free from parent Assistant
  • Start UiPath.Service.UserHost.exe standalone or by any process except for Assistant


Workaround #2:
Create a sub workflow with send SMTP activity and call this workflow using Invoke Workflow file activity, mention the timeout in the Invoke workflow file activity so the SMTP will not get stuck for long hours it will throw a timeout error after specified time on Invoke workflow file activity.