Send outlook mail message activity not working

Hi,

We are trying to send a e-mail via outlook in Uipath.

We’ve filled in body, subject, receiver and account name. Outlook is currently open and we’ve logged in to the sending e-mail account.

We get the following error message:

19.4.5-beta.3+Branch.release-v2019.4.5.Sha.5565769a804067cbb6bf95c31baa0003a33a69bc

Source: Send Outlook Mail Message

Message: The operation failed. The messaging interfaces have returned an unknown error. If the problem persists, restart Outlook. The operation failed. An object cannot be found.

Exception Type: System.Runtime.InteropServices.COMException

An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.Runtime.InteropServices.COMException: The operation failed. The messaging interfaces have returned an unknown error. If the problem persists, restart Outlook. The operation failed. An object cannot be found.
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)

What seems to be the problem?

Thanks

Make sure your anti virus is not blocking your bot to read the mails and, if restarting outlook not worked, then you need to check the compatibles of outlook

Try with removal of string entered in the SentOnBehalNameProperty. it will work.

3 Likes