I created a web service that's supposed to dispatch e-mails using a public free e-mail provider, e.g. GMail or Outlook.com
A few years ago, this would have been a snap using SMTP and STARTTLS. Yet, as of the end of May, 2022, Google and Microsoft no longer allow enabling "Less secure apps". So, I'm not able to use Basic authentication (i.e. user name and password) for sending e-mails using SMTP.
I have been searching for documentation on how to do things now, but I'm not able to succeed.
So, I asked the MailKit team, followed their suggestions at https://github.com/jstedfast/MailKit/issues/1620, but to no avail: https://stackoverflow.com/questions/76871274/how-can-i-send-e-mails-from-my-gmail-account-using-rest-service
Now I'm lost: How do I send e-mails from an unattended ASP.NET Core web service, installed in a Docker container, using a public free e-mail provider? What's an up-to-date, bullet-proof approach and solution?
Your answers are very much appreciated.