Tech Tip: Username and password not accepted (535-5.7.8 smtp.gmail.com error)
PRODUCT: 4D | VERSION: 19 | PLATFORM: Mac & Win
Published On: December 12, 2022
When trying to send an email using SMTP New transporter via the smtp.gmail.com server, an error may be encountered that states “535-5.7.8 Username and Password not accepted”. This can occur when the Google account has 2-Step-Verfication. A quick fix is to go into the the Google account’s security settings and create an app-specific password for the sign-in from 4D. Note that this solution is fine for testing purposes, but in production it is recommended to use OAuth 2.0 to handle user authentication from 4D to Google, as it is more secure.