This is almost always the same root cause as this earlier thread on connecting Gmail — if you have 2-Step Verification on (most accounts do by default now), Gmail rejects your normal account password for SMTP entirely and needs a 16-character App Password instead. Quick check: go to Google Account > Security > 2-Step Verification > App passwords, generate one, and use that in place of your regular password in Settings > Sending.