Send SMTP Email

Hello community, I hope you’re all doing well. I’m reaching out to you with the following issue. One of my robots stopped sending emails. When performing the validation, I found the following error: “Send SMTP Email: The operation has timed out.” I have set timeouts, but it still doesn’t work.

The activity is SendMail from UiPath.Mail.Activities, and it is configured as follows:

The rest is the standard account configuration.

I would appreciate your help or guidance on how I should proceed at this point.


Hi @cristian_camilo_gonzalez

Could you please let me know which version of the mail package you are currently using? If it’s outdated, kindly update it to the latest version. Additionally, what delay settings are you using to address the timeout issues?

There are often problems with legacy and SMTP servers. To avoid these issues in the future, it would be better to switch to Microsoft O365 activities for sending emails.

Regards,

Kirankumar

1 Like

@cristian_camilo_gonzalez

Check with your SMTP server admin if anything changed.

Also try testing the activity in a separate workflow if issue persists or not.

1 Like

Hi @cristian_camilo_gonzalez

  • Do not use smtp-legacy.office365.com anymore (it’s deprecated or blocked).
  • Use smtp.office365.com, Port 587, with TLS enabled.
  • Basic authentication (username + password) is often disabled by Microsoft now.
    *switch to OAuth or use the Integration Service (Microsoft 365 Mail).
  • If you must continue with SMTP:
    • Make sure SMTP AUTH is enabled for that mailbox in Microsoft 365 Admin
    • Use an App Password instead of the normal password
    • Ensure firewall allows outbound traffic on port 587

Use UiPath Integration Service → Microsoft 365 Mail instead of SMTP.(Recommended)

1 Like

@cristian_camilo_gonzalez

is it for all emails or randomly?

if its random then try with retry scope around it

if its happening for all…first thing what authentication are you using? and is it working on other machines or users?

cheers

1 Like

Hi @kirankumar.mahanthi1
Sure, this is the version we’re currently using

And For the delay, we only use the value configured in the activity’s timeoutMS field.

Thanks for the suggestion regarding Microsoft O365 activities — I’ll give it a try.

Hi @ashokkarale thank you

1 Like

Hi
Thanks for the suggestion. I’ll try using Microsoft 365 Mail via the Integration Service as recommended.

Hi

It’s happening for all emails. I’m using the activity’s timeoutMS setting for delay, and it works fine on other machines/users.

@cristian_camilo_gonzalez

can you check if on the machine the firewall is blocking

port or the traffic

cheers

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