I’ve seen a number of threads that touch on this, but nothing that coherently answers the question of how to resolve the problem.
I am very happily getting and sending mail under my own identity/account, leaving the ‘Account’ property of both Send and Get blank.
We have a shared mailbox, ‘Expenses’. Our IT guys set it up a few days ago, and it appeared spontaneously in the left panel of my Outlook. In Outlook I am able to see the contents of the Inbox, and am able to send from the box by simply substituting the box address, firstname.lastname@example.org, for my own in the From field of the outgoing message. Any message sent from this address in this way appears in the shared box’s Sent folder. Cool.
Back to UiPath, I put a ‘Get Outlook Mail Messages’ activity in my workflow. I specify Input->Account == “Expenses” and Input->MailFolder == “inbox”, and woo hoo! I am rewarded with the contents of the Expenses mailbox inbox.
I add a “Send Outlook Mail Message”. I address the message to my own email (email@example.com) and, based on what works in ‘Get…’ I specify Input->Account == “Expenses”.
For my troubles I am rewarded with an error:
Main has thrown an exception
Source: Send Outlook Mail Message Message: Account not found: Expenses Exception Type: ArgumentException System.ArgumentException: Account not found: Expenses 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)
I have tried variations on the mailbox name: “Expenses”, “expenses”; specify the mailbox’s address “firstname.lastname@example.org”, with and without the domain “ourcompany\Expenses”, nothing. Zip, nada. Same error each time.
I’ve also tried “Send Exchange Mail Message” and haven’t gotten that to work at all. Throws a “Source: Newtonsoft.json; Exception Type: JsonSerializationException” every time.
So, back to the Outlook activities. Recap: I can get mail from the shared box by specifying the name of the box in the “Account” property. I can’t send mail from the box by specifying the name of the box in the “Account” property.
How do we get around this?