Mails are not being sent in unattended mode

Hello,

I am facing an issue with one of my robots in production. When I run it in attended mode the process should send an email using the send smtp mail activity, and it does. But when the process is deployed in Orchestrator, and runs in unattended mode the email is never sent.

Can you please help me determine where is the issue?

@Rooty,

Add few seconds of delay like 10-15 seconds after your Send Email activity if you are using Outlook activity.

This happens when your bot finishes right away after send email activity without allowing Outlook to send the email. The email lefts in Draft folder.

Thanks,
Ashok :slight_smile:

They aren’t using Send Outlook they’re using Send SMTP Mail Message.

@Rooty check with your network security team to see if SMTP is allowed from the server. It probably isn’t.

Thank you for both of your answers @ashokkarale and @postwick !

I tried both activities Send Outlook, and Send SMTP with delays of 10-15 seconds and it is still not working in unattended mode.

When running from Studio in attended mode inside the robot session, the mail is sent. I still can’t figure out where the issue is coming from.

Did you talk to your security team?

SMTP is allowed yes, the issue is in the unattended mode.

It’s like the activities do not work in background mode, the session should be visible for them to work. Which is weird, this never happened to me before…