Send SMTP Mail Message Sometimes Hangs And Does Not Complete

Resolution 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.

Root Cause: Send SMTP Mail Message has been in a hang because of a bug.


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

Workaround #1:

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


Workaround #2:

  1. Create a sub workflow with send SMTP activity
  2. Call this workflow using Invoke Workflow file activity
  3. 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.