Send email from shared mailbox with Outlook or Exchange

Hi folks,

I know this is a question which already came out several times, and trust me, I went through all the related topics but I couldn’t find a satisfying answer to my issue.

What I got:
An account in Outlook (let’s call it Firstname.name@company.com for confidentiality reasons) with three shared mailboxes added through File > Account Settings > Email > Change > More Settings > Advanced > Add.
It looks like that:

Boite_reception

Each of the three shared mailboxes appears under its own name in Outlook (“Shared_mailbox1”, etc.) and is linked to an email address like “Shared_mailbox1@company.com”, etc.

What I would like to do:
Send an email on behalf of one of the shared mailboxes to my main account address.

What I’ve tried so far:

  • The Send Outlook Mail activity
    Outlook

I’ve tried to set the account field with either the email address (“Shared_mailbox1@company.com”) or the name (“Shared_mailbox1”) of a shared mailbox.
In both cases, I got an “Account not found” error message.
If I leave the field blank, I receive an email from my main address (“Firstname.name@company.com”).

  • The Send Exchange Mail activity
    Exchange

Here I use my main email address and password in the logon fields, which works fine.
In the sender fields, I’ve tried numerous things:

  • for “From” field: both email address (“Shared_mailbox1@company.com”) and name (“Shared_mailbox1”) of a shared mailbox.
  • for “Name” field: leave it blank, email address and name of a shared mailbox

Regardless of that, I always receive an email sent by my main address (“Firstname.name@company.com”). It seems like the robot doesn’t care about what I typed into the “Sender” fields.


I honestly don’t know what to try next, and I hope someone will be able to help me on that point…
Maybe I’m missing an obvious point, but I couldn’t find an explanation to that behaviour so far.

Thanks,
Rémi

1 Like

OK, problem solved, I found the solution a bit out of the blue.

I still don’t know how to do that with the Outlook activity, but it is possible with the Exchange activity: you have to leave the “From” field blank, and write in the “Name” field the email address of your shared mailbox (“Shared_mailbox1@company.com” in my example).
Not really intuitive but it works!

5 Likes

wow! this works for me :slightly_smiling_face:

Brilliant! You saved my life.

Thanks for the above details, however, can anyone please help me with sending out email via shared mailbox using Outlook Activity. Thanks

Hi @nitman1- did you find anyyyyy solution for the outlook activity? thank you!!

1 Like

ok, I think I have it!!
instead of the actual email address, one should write the name of the outlook account such as if you had:

shared.account@something.com (like the email address) and
Account, Shared (like the name)
→ then you don’t put the email address into Account property but the name of your shared account, and that would be like : “Account, Shared”
That is it!

2 Likes

Hello @ajlakasic,

I’m glad someone found a solution to this problem since I struggled with it a lot till I used an Excel macro as a substitute to the activity. But I’m not sure I understand how to do it, let say I have an account named “UserAccount1” and the email address of this account is “john.doe@someemail.com”, how would you put the parameters in the send email activity ?

I tried several ways but none is working

Thanks a lot in advance for your answer

BR

Hi Guys,

Hope you all are doing well.

I am excited to see my first submission in UiPath Go is now published which is Custom Activities for shared/Group mailbox. Below is the link of package :

https://go.uipath.com/component/exchange-shared-group-mailbox-activities

Please take some time to review it and provide you valuable feedback for continuous improvements.

If you have any question, please do reach out to me.

Many thanks,
Avnish

1 Like

Hello Avi7,

I downloaded your package but didn’t have the time to test it yet, I have high hopes for it :slight_smile:

I’ll let you know once I had the chance to give it a try

BR

1 Like

This is how my past problems with the Outlook activity and shared mailboxes were solved:

Windows → Control panel → Mail (see screenshot) → Profiles → Add a new one

Now the email you are using for the new profil will have to go in the properties of the SendOutlookMail activity of UiPath.

By keeping the mailboxes “separated” nicely in this way, i had no more problems with the Outlook activities (no more “Account/folder not found” errors anymore…).

Hope that helps others too!

1 Like

@ajlakasic… Cant thank you enough. It worked for me. Though my name of the shared account goes like “Shared Account SharedAccount@XXXX.com”. I updated the name as it and it worked.

Hey… so I tried the approach of giving the shared mailbox name in the send outlook mail message activity. However, I am still getting an error stating “Account not found”. Whereas, I am able to see the account when I open Outlook manually to check if Account exists or not. Can you please help me understand how to send mails from a shared mailbox using Send Outlook Mail Message Activity.

P.S. I mentioned the Account Name as well as Account Email Address in the “Account” property of the Send Outlook Mail Message. None of the approach worked for me.

I am using Exchange Mail Message activities but when I put the “shared email” in the Name property…the email still sends from the default account instead of the shared email account. When I try putting the “shared email” in the From property…I get an error saying I do no have the right to send mail on behalf of the specified account

Can anyone please help me here? I need to figure this out.

Its asking for server address for me if i use the exchange activity.
Do we need to use both SentOutlookMail and SendExchange activities for sending mail through Shared mail box?

Send outlook mail uses the current users’ outlook account to send. If you want to use a shared email account, then

  1. You need access to that inbox. For this your administrator needs to add this account to yours. When this is done, that inbox will show in your outlook account.
  2. Administrator needs to enable ‘send email’ privilege so you can send emails.