How to send Gmail emails 2023

I’m trying to use the send SMTP mail Message activity, but it doesn’t allow me to send the mail, it sends me the following tool.

Send SMTP Mail Message: 535: 5.7.8 Username and Password not accepted

Investigating, I found that I had to go to the Google settings and allow access to less secure apps, but since 2022 Google has disabled this option.

How can I send an email from the GMai account there?

image

  1. Go to your Gmail Account and Choose manage Gmail account

  2. Go To Security → Click on 2 Step verification and enable it

  3. If not in below page, click on 2 Step verification again

  4. Go to App Passwords

  5. Do the below configuration and click on generate

  6. You will get a one time password that can be used with all mail related activities for gmail as your password for the email account your using

Happy Automation!!

Hi @alexis.mendoza

  1. Go to your Google Account settings page: https://myaccount.google.com/
  2. Click on “Security” in the left-hand menu.
  3. Under the “Signing in to Google” section, click on “App Passwords.”
  4. If prompted, sign in to your Google account again.
  5. In the “Select app” dropdown, choose “Mail” from the list.
  6. In the “Select device” dropdown, choose “Other (Custom name)” and provide a name (e.g., “UiPath Email Bot”).
  7. Click on “Generate.”
  8. Google will generate an App Password for you. Note it down or copy it to your clipboard.

Now that you have the App Password, you can use it in UiPath’s “Send SMTP Mail Message” activity:

  1. In your UiPath workflow, open the “Send SMTP Mail Message” activity properties.
  2. For the “Username” field, enter your full Gmail address (e.g., your.email@gmail.com).
  3. For the “Password” field, paste the App Password you generated in the previous steps.
  4. Configure other settings in the “Send SMTP Mail Message” activity, such as the recipient’s email address, subject, body, etc.
  5. Save and run your UiPath workflow.

Hope it helps!!

Suuccessfully

Thanks

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