I am having a hard time finding a way to send email from a Gmail account that has strong security.
I have a Gmail account used in my company. We cannot simply log in to this account from google.mail.com page. We first have to visit a website interface created by our company, where we need to log in with a user name and a password. And then, there is a 2-factor authentication, where we need to select right images in a certain order. Kind of looks like the 2nd password.
Once these are all passed, we can access our Gmail.
Now, we need to have UiPath send an email from one of these Gmail accounts, and I am using Send SMTP Mail Message activity, but I have been getting error:
"Send SMTP Mail Message: 535: 5.7.8 Username and Password not accepted. Learn more at 5.7.8 https://support.google.com/mail/?p=BadCredentials"
I found that this can be solved by allowing “Less Secure App” to access gmail account from the account security setting. So I enabled less secure app too.
However, the same problem persists.
Is there any way to do this?