Hi, I’m trying to create a sequence that sends notification emails to some contacts with information, but when I run the program I get this error.
in Main.xaml
at SendEmailNotification “Send Email Notification”
at Sequence “Then”
at If “If”
at Sequence “Body”
at ForEachRow “For Each Row in Data Table”
at Sequence “Main Sequence”
at Main “Main”
System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request).
at UiPath.Core.Activities.ForEachBase`1.OnExecutionFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
I’m experiencing the same issue. When I execute the send mail object and correctly configure the to, subject, and body fields, I get the following output: “Send Email Notification: Response status code does not indicate success: 400 (Bad Request).”
Can you help me determine if this is a bug in the current version or if there’s something missing in the configuration?
We don’t get a 404 error, but a 400 error.
Thereby, we have the Mail settings set to ‘Use default mail settings’ as set by orchestrator. None of it is editable.
UiPath is able to send email notification from the alerts panel. Don’t know if this setting is related to the SendEmailNotification activity. These are the settings from the manage notification panel in the current tenant:
Orchestrator notification mail settings are only used for alerts. Send Email activities do not consume these settings, so relying on “default mail settings” causes a 400 error. SMTP or mail integration must be configured explicitly in the workflow.
Here are some causes for the issue:
Email Server Settings: Ensure that the email server settings are correct and that the email server is properly configured. You can verify this by going to the “Settings” page in Orchestrator, selecting “Mail”, and checking that the SMTP settings are correct.
Email Delivery Settings: Check if the email delivery settings are properly configured in Orchestrator. This includes verifying the SMTP server, port, username, and password
Email Activity Execution: It’s possible that the email activity is not being executed when the process is run from Orchestrator. You can check this by reviewing the logs in Orchestrator for any errors or warnings related to the email activity.
Email Credentials and Assets: If you’re using credentials and assets stored in Orchestrator for the email activity, ensure that these are correctly configured and accessible by the process when it’s run from Orchestrator.
Email Alerts Configuration: If you’re relying on Orchestrator to send email alerts, ensure that these are properly configured. This includes setting up the SMTP server for email notifications and enabling the necessary alert types.
Permissions: Ensure that the robot has the necessary permissions to execute the email activity when the process is run from Orchestrator.
Apart from these, can you please attach your unattended log and also verify if the SMTP port are allowed inbound/outbound on unattended bot machine. If you are using MS package, then there might be different issues.
Apologies its autocorrect I’m taking about 400 only
The Orchestrator Alerts / Manage Notifications mail settings are only used for system notifications and are not shared with workflow activities like Send Email Notification. That is why alerts work, but the activity still requires its own SMTP or Integration Service configuration.
To fix this, configure Integration Service or set SMTP at tenant or machine level.
Description
The Send Email Notification activity uses UiPath Notification Service to send an alert via email to a list of recipients.
So I don’t understand where or why I need to configure my own SMTP service. Based on the documentation I understand that it should be handled by UiPath somewhere.
The Send Email Notification activity only triggers UiPath Notification Service.In Automation Cloud, UiPath already provides an email delivery service, so users do not need to configure SMTP.
In On-Prem Orchestrator, UiPath does not provide any email server, therefore SMTP configuration is mandatory.
We are using Automation Cloud, so therefore we should use the provided email delivery service.
I also found these Release notes where UiPath talks about the elimination of configuring external email servers.
So I still don’t understand why it is not working out of the box for me. Any other suggestions?
with which password or credentials? This activity doesn’t need any authentication or SMTP configuration. As shown in the screenshot there is no password/credential area.