Google lately disabled using less secure apps option which allowed to authenticate to the Gmail SMTP service with plain user/password.
The alternative now is to first enable 2f authentication, then generate an application password.
Here is a video that explains this process in detail: