Send SMTP mail message activity not working while executing the BOT

not able to work on Send SMTP mail message activity as expected.
While execution of BOT, Bot is not performing any action(Neither throwing exception nor sending emails) when it reaches Send SMTP mail message activity, BOT is being idle for long time.

Hi @latha.reddy ,

It can be so many reasons for SMTP mail message activity stuck for long time. We have also faced the similar issue earlier we have switched from SMTP to exchange server to resolve the issues.

Send exchange mail message activity will work without any issues for this you should be having office 365 in your machine. Thanks.

1 Like

Hi,

The following might help you.

https://forum.uipath.com/t/smtp-mail-message-activity-hangs-intermittently-while-sending-emails/345286

Please use Auto translate service.

Regards,

Ask your email administrators to tell you what’s happening on their end when your automation tries to send an email.

Hi Everyone,
I present the same problem. The company’s SMTP server does not need a username and password but only a server and port to send emails. Today we have just migrated to a production cloud environment and the licenses are unattended. The VM where the Unattended robots will be executed was connected with the orchestrator Cloud and we executed the robots from the orchestrator and they worked correctly. When we ran the bot from the UiPath Assitant, it worked fine until it got to the SMTP Mail Message activity and was truncated without showing an error or stopping on error until we had to stop it. It was run from the UiPath Studio and it still has the same problem. Also, the VM was restarted and it worked the first time, but then the error returned.
Somebody could help me? Why does it work when running from the Orchestrator and not from the Assistant or UiPath Studio?

I have the exact same issue. I realized that the send SMTP activity takes the attachment I want to send and somehow it appears as if it was “opened” by uipath (in my case its an excel), but the excel is never sent. Did you manage to solve it somehow?

No, I still don’t have a solution. Nobody answers me :frowning:

UiPath Tech Support suggested these fixes to me, and the “or” part worked! anyway, they are taking care of the issue in their next release of Studio (22.4)I believe:

You can try using this .bat file in your machine as a task or manually starting it:

start “C:\Program Files (x86)\UiPath\Studio” “C:\Program Files (x86)\UiPath\Studio\UiPath.Service.UserHost.exe”

timeout 5 > nul

start “C:\Program Files (x86)\UiPath\Studio\UiPathAssistant” “C:\Program Files (x86)\UiPath\Studio\UiPathAssistant\UiPath.Assistant.exe”

Note: Program Files (x86) should be changed to Program Files in the newer UiPath versions. (it depends where and how you installed Studio)

or

Install in your Studio project the UiPath.Mail.Activities[1.13.1-preview] package → Save the Project, close the Studio

  1. kill the Assistant process to make UiPath.Service.UserHost.exe free from parent Assistant (from Task Manager)
  2. start UiPath.Service.UserHost.exe standalone (from Studio installation folder) or by any process except for Assistant
  3. open Studio, and check to run the Send SMTP Mail Message with a timeout of 2 minutes
2 Likes

Excellent, I just did these steps:
“1.kill the Assistant process to make UiPath.Service.UserHost.exe free from parent Assistant (from Task Manager)
2.start UiPath.Service.UserHost.exe standalone (from Studio installation folder)”
And it worked for me so far. It seems to be a stable solution.
What I didn’t have to do was:

  • install another version of Mail.Activities (1.9.5).
    However, I will tell you in a few days if it is a total solution.
1 Like