Unable to send mail using SMTP

Hi everyone,

I’ve been using SMTP to send emails through a Gmail account, and it was working perfectly until last week. Now, I’m consistently getting the following error:

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

Here’s what I’ve already tried:

  • I’ve verified the email and password by logging into the Gmail account via the web — the credentials are correct.
  • No changes have been made to the SMTP settings in my application.
  • I’m using the following SMTP configuration:
  • SMTP server: smtp.gmail.com
  • Port: 587 (TLS) / 465 (SSL)
  • Authentication: Enabled

What could be causing this issue, and how can I resolve it?

Thanks in advance for any help!

@kamlesh1

the password to be used is the app password and not the normal gmail password

please check here on how to generate app password

cheers

1 Like

Hi @kamlesh1

gmail disabled less secure apps, so smtp with your regular password now fails. so pls generate an app password from your google account. use this app password in your UiPath smtp activity instead of your regular password. this will restore email sending functionality.

Happy Automation

1 Like

Hey @kamlesh1 you have to use APP password

  • Enable 2-Step Verification on the Gmail account:
  • Go to: https://myaccount.google.com/security
  • Enable 2-Step Verification (if not already enabled)
  • Generate an App Password:
  • Go to: https://myaccount.google.com/apppasswords
  • Select Mail as the app, and Windows Computer or another option as the device.
  • Google will generate a 16-character app password.
  • Use this App Password in your UiPath SMTP settings:
  • Replace your Gmail password with this new App Password.
  • Keep using smtp.gmail.com with Port 587 (TLS) or 465 (SSL).

Note:These Steps are generated with the help of AI.

CHEERS

1 Like

@kamlesh1,

Do search on the forum for similar topics, you will get liye of solutions regarding this.

Refer this one for example

I’m unsure why you’re using Google for sending with SMTP. SMTP is a basic protocol which does not require any sort of account to send with, you could just use your internal SMTP servers.

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