Send SMTP Mail Message: 5.5.2 Error: command not recognized

RemoteException wrapping MailKit.Net.Smtp.SmtpCommandException: 5.5.2 Error: command not recognized
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)

Could some one help me with this error ?

@UiPath_Community can someone please help me here?

@SAMANTA_COTTACKAL1

Can you please print and check if there are any nee lines in subject or to email?

Also try to use hardcoded values for everything and check if the issue persists…

Generally this error occurs when unhandled characters are found in the values

Cheers