The specified string is not in the form required for an e-mail address - Gsuite

Hi,

I have this issue using Send mail message from GSuite Application Scope :

The specified string is not in the form required for an e-mail address.

I put email in parameters “To” like {“email1”,“email2”}

It works for 2 emails but not for 18…

Is this normal ?

Any help ? Please

20.4.0-beta.1788

Source: Send Mail Message

Message: The specified string is not in the form required for an e-mail address.

Exception Type: System.FormatException

RemoteException wrapping System.FormatException: The specified string is not in the form required for an e-mail address.
at System.Net.Mail.MailAddressParser.ReadCfwsAndThrowIfIncomplete(String data, Int32 index)
at System.Net.Mail.MailAddressParser.ParseDomain(String data, Int32& index)
at System.Net.Mail.MailAddressParser.ParseAddress(String data, Boolean expectMultipleAddresses, Int32& index)
at System.Net.Mail.MailAddressParser.ParseAddress(String data)
at System.Net.Mail.MailAddress…ctor(String address, String displayName, Encoding displayNameEncoding)
at UiPath.GSuite.Activities.API.GmailExtensions.MailMessageToByteStream(String to, String subject, String body, String attachments, String from, String cc, String bcc, Boolean isBodyHtml)
at UiPath.GSuite.Activities.SendEmail.d__39.MoveNext()
— End of stack trace from previous location where exception was thrown —
at UiPath.Shared.Activities.AsyncTaskCodeActivityImplementation.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at UiPath.Shared.Activities.ContinuableAsyncCodeActivity.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)

Problem solved :
One of the mail was missing the “@gmail.com” …

1 Like