Facing error while sending mail to multiple users

Hi,
I am facing error while sending mail to multiple users using ;

using send smtp mail message activity and passing - a@a.com;b@b.com into To: field

below is error
An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.FormatException: An invalid character was found in the mail header: ‘;’.
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)

image

can anyone please help

Hi @neerajkumar.pokhariyal,

Maybe you are writing the user mail addresses to wrong place.

Can you check it? Kindly share the screenshot of the Send SMTP Mail Message properties.

Because i use this format to send mail to multiple users.

Regards.
Ömer

Hii @neerajkumar.pokhariyal

In To address you can add multiple emails &

In CC address you can add multiple emails

like {a@a.com;b@b.com} and check…

Regards,
Armila

issue is fixed, added space after ;
like - a@a.com; b@b.com

1 Like

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