If I set my send mail activity to draft, the process does not failed. It only failed when is not set to draft and direct send via my outlook account.
Info: Outlook does not recognize one or more names.
RemoteException wrapping System.Runtime.InteropServices.COMException: Outlook does not recognize one or more names.
at UiPath.Mail.Activities.SendMailActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
can you tell us on how the last recipient was added and if e.g. a semicolon ( is closing the list or not. Also check and remove any spaces within the list
Not sure if this will help, but I had the same error message. The automation saved the draft successfully, but it would not send. My automation was getting a list of email addresses from another Outlook message. I found that Outlook was appending information to each email address - in my case, it was presence at a Teams meeting. For instance, [first.last@url.com] became [first.last@url.com, presence unknown]. Outlook doesn’t like that format.
To solve this, I outputted the email addresses to the Project Notebook scratchpad, then I used Excel find/replace to remove the appended data (I did find/replace ,*), then I copied the column with the cleaned email addresses, chose Paste from Clipboard in the To field of the Send email activity, and the automation ran successfully.
Perhaps inspect the data that is appearing in your datatable and ensure it is what you expect.
I resolved the issue by adding action to do while loop to check on the mail to: list before sending.
It might seems to be issue in time lag to get outlook mail content to populate as new email to send out.