Runtime error

Source: Send SMTP Mail Message

Message: 535: 5.7.8 Username and Password not accepted. Learn more at
5.7.8 https://support.google.com/mail/?p=BadCredentials m24sm3403527pfa.37 - gsmtp

Exception Type: MailKit.Security.AuthenticationException

RemoteException wrapping MailKit.Security.AuthenticationException: 535: 5.7.8 Username and Password not accepted. Learn more at
5.7.8 https://support.google.com/mail/?p=BadCredentials m24sm3403527pfa.37 - gsmtp —> RemoteException wrapping MailKit.Net.Smtp.SmtpCommandException: 5.7.8 Username and Password not accepted. Learn more at
5.7.8 https://support.google.com/mail/?p=BadCredentials m24sm3403527pfa.37 - gsmtp

--- End of inner exception stack trace ---

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)

Can you check this post @Umamaheswar?

have you access the less secure apps in gmail ?

Thanks for your reply
Now its working
i find-out the solution.

It might be silly. Check if the credentials and the port numbers are right. If you get the error message even after that, restarting Uipath Studio and restarting the PC would solve this issue.

It worked for me. Give a try.