Bot is unable to send email from prod env. using Send SMTP via Outlook

Bot is unable to send email from prod env. using Send SMTP via Outlook.

It extracts data from excel as html table and send mail using SMTP mail message.
Operation gets timed out and throws an error.

It is working in DEV env. Attached screenshots for reference. Please help.

@dev_anand_vg

Do below check to identify issue:

  1. Check if your production machine has internet connection.
  2. Check if SMTP port is blocked in prod machine (Test-NetConnection smtp..com -Port 587)

Thanks Rohit.

Yes Prod machine has internet and it sends mail for other processes.

SMTP and mail settings are configured for all the process and linked/shared by different prod assets.

Please ensure that you are passing the correct values for the following attributes:

  • Server: smtp.office365.com
  • Port: 587
  • Secure Connection: StartTLS
  • Email: yourmail@company.com
  • Password: App password (preferred)

Hi Bala - Thanks for the response.

Yes everything is configured properly. Bot is sending mails with the same config for other processes.

Please try placing the Send Mail activity inside a Retry Scope activity and increasing the Timeout value to avoid timeout issues while sending the email.

Alright, Thanks Bala - I will try this and let you know.

@dev_anand_vg Since this is working in DEV but timing out in PROD, it looks more like an environment or connectivity issue rather than a problem with the workflow itself.

A few things you can check on the PROD machine:

  • Verify SMTP configuration (host, port, SSL/TLS) matches Outlook settings exactly

  • Ensure PROD server has network access to the SMTP endpoint (port 587/465 not blocked)

  • Check if SMTP AUTH is enabled for the mailbox (sometimes disabled in PROD environments)

  • Validate credentials used in PROD are correct and not locked/expired

  • Check firewall or proxy restrictions in PROD

Seeing that it’s working in DEV and only failing to connect in PROD my instinct would be something with the environment. Take a look at the PRDO server’s network/firewall settings, and SMTP port access/timeout in PROD, these are common culprits for this error.