SEND SMTP File

When trying to send email using gmail getting below error.

"18.3.2+Branch.master.Sha.0ee1a557250c8000e864a91dcaeebdc1a4bbeb00

Source: Send SMTP Mail Message

Message: AuthenticationInvalidCredentials: 5.7.8 Username and Password not accepted. Learn more at
5.7.8 Check Gmail through other email platforms - Gmail Help x27sm2625548pfe.178 - gsmtp

Exception Type: MailKit.Security.AuthenticationException

An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
MailKit.Security.AuthenticationException: AuthenticationInvalidCredentials: 5.7.8 Username and Password not accepted. Learn more at
5.7.8 Check Gmail through other email platforms - Gmail Help x27sm2625548pfe.178 - gsmtp
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)
"

1 Like

Hi @aggarwal-r
Refer this post:

https://myaccount.google.com/lesssecureapps?pli=1

Regards,
naveen

2 Likes

Hi @aggarwal-r
this problems occurs usually when you gives wrong credentials. check your credential details.
Thanks & Reagrds

Hi Jitendra_123

Manually it works to login

Hi @Naveen_tg

Not working

hi @aggarwal-r,
did u try unlocking catcha??
Refer this link
http://www.google.com/accounts/DisplayUnlockCaptcha

Hi @aggarwal-r
Firstly you should activate two factor authentication on your gmail account and should change the “Access for less secure apps” to Enabled at This Link after that must set a application password for your application via using This Link .

6 Likes

@Naveen_tg

Thanks… It works

Can you mark my previous post as solution. Thank you :slight_smile:

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