2👍
This was an issue with gmail itself. Anybody running into this issue should first try going to security settings and allowing access to less secure apps. if that doesn’t work try visiting https://accounts.google.com/DisplayUnlockCaptcha and then use your application to send the email again.
Source:stackexchange.com