User753101303 posted
This is for historical reason. Whenever you see SSL it means actually TLS. Try this with port 587 and it should work.
Ah ! Another option would be to use https://github.com/jstedfast/MailKit which is suggested as a replacement for SmtpClient in ASP.NET Core which might support also the authentication stuff
I talked about previously but it might be a bit more complex. Start maybe with SmtpClient and keep this option for later ?
Edit: done a quick search. They are using OAuth 2 for authentification (and so you have to enable https://support.google.com/accounts/answer/6010255?hl=en for SmptClient)
With MailKit it seems it would be something like https://github.com/jstedfast/MailKit/blob/master/FAQ.md#GMailAccess (option #2 seems a bit more complex, never tried
this yet myself)