Cannot send email to contact group - recipient is not valid, recipient is not resolved

I am trying to send an email to a contact group I have created in Outlook (from the People tab, New Contact Group).

It works when using the Use Desktop Outlook App activity in UiPath.Mail.Activities
It does not work when using the Use Outlook 365 activity in UiPath.Mail.Activities
It does not work when using the Send Email activity in UiPath.MicrosoftOffice365.Activities

Is sending emails to contact groups not supported with the Outlook 365 activities?

image

@KevinE

Looks like the geoup is locally created in your desktop outlook bu tnot synced with the server…hence it is unable to find the same

Cheers

I’ve checked that too, it doesn’t seem to be the issue. I am able to go to outlook web and I can see the contact group and send an email to the group from outlook web.

When the process fails, a draft of the email is created. This is a screenshot of the draft from outlook web.

The yellow TEST Contact Group is what was created by UiPath. It is in yellow because it’s an invalid recipient, because it hasn’t been resolved.

The white TEST Contact Group is something I typed in just to show that the contact group is synced.

I then tested to see if it even works with individual recipients and it seems like even that does not work. If I just type my name in the UiPath field, it does not resolve, which is showing in yellow here.

If I type my full email address in the UiPath field, it does resolve, which is showing in white here.

@KevinE

As you mentioned there lies the issue…to field supports emails and not names

cheers

So then there will be no way to address an email to a contact group because there is no full email address? Is there something that would do the equivalent of pressing Ctrl+K or pressing Tab after just typing a name in the recipient field?

The documentation also says for the UiPath.Mail.Activities Send Email to enter email addresses. But names and contact group names do work if used within the Use Desktop Outlook App activity.

Activities - Send Email (uipath.com)

@KevinE

if you see there is a special instrcution separately mentioned for outlook desktop but not for others

Also if you open the group in outlook you can see the associated email with it…like a dummy group email…try usign the same

cheers

Hi, You can use “Get Group” activity, get the email address of your group from the Group outlut variable and input to the send mail activity.

Please note you will need required privileges to be enabled for the account while using this activity. Please let me know if it helps. @KevinE Thanks.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.