Issue in send smtp mail message

hi,
My process got stuck in send smtp mail message activity. Few days ago it works fine. but now it stuck in send smtp mail message.
how can i solve it?

1 Like

@arijit1213 ,

Are you getting any error?

hi @sarathi125
No. i am not getting any error

@arijit1213 ,

May be a timeout issue and can be coded for using Retry Scope.

1 Like

hi @sarathi125 ,
After restarting my machine and running the same process it results success. but after one day the process got stuck and then also restarting machine solve my issues.
but every time restarts not possible.
And when i debug the process after getting stuck it gives an error that -“send smtp mail message: Timed out while waiting for Mail service to connect.”

@Srini84
can anyone please help me to solve this issue?

@arijit1213

In my previous cases it was happened, i updated the mail package and it’s working as excepted.
can you update package version and check it.

hi @vamsiyeluri
should i update mail package to the latest version?

yes, u can update

hi @vamsiyeluri
I try it but the the result is same i.e suck in smtp mail message

hi @loginerror
please help me to solve this issue.

Please help me to solve the smtp issue

Having the same issue on Azure. Firewall seems to be set ok. Another machine in the same net is hovewer ok (sending and receiving emials). Seems like a Azure VM issue. Do you also run it on Azure?

i run it on aws vm.

how did you solve this issue?

@arijit1213 Which SMTP server do you use?
It happened to me with MS smtp.office365.com server.

I think they are blocking the service for 3th party users eventually.
Restart a MV allows us get new mac address and smtp works again.

I am planning to use AWS SES for send email.

Anybody have ideas?

1 Like

Yes
Go Manage Packages > Uipath.Mail.Activities > select “1.10.4” version and select Runtime Rule “Strict”.
its working for me.
Thanks,
vishal chavda

For anyone in the future that runs into this problem (although I was told it would be marked to be fixed in an upcoming version of the Mail activities), we needed to add ImapX as a dependency to the package. I had it already installed on my computer but the client’s PC did not. Once we added that everything was working!

Hi,

I’m also facing the same issue. I’m using Uipath studio Pro 2021.4.4 and SMTP Mail service to send the emails. It works fine for few days after that process gets stuck at sending email. It doesn’t give any error message just waits at sending email activity. If I don’t stop forcibly it will never end by itself. Only the solution is restarting the VM.

I tried to downgrade the Mail package version by 1.10.5 to 1.10.4. In this version it gives Timeout error message so I had to use 1.10.5 version only. I’m running multibots on multi VM. Every VM has the same issue. I need to restart whenever this situation comes.

If anybody found the solution please help me.

Thanks,
Manjula

1 Like

Hi,

Facing the same issue in uipath studio 2021.4.4 [Error] send SMTP mail message: timed out while waiting for mail service to connect in VM. if anybody finds the solution please share the solution