Alternative to Basic Authentication to send email from c# windows service
I have a C# windows service from where I send emails using SmtpClient
and Basic Authentication.
But as Microsoft is depreciating Basic
Authentication as here,
I want to know how I can send email from my windows service using
OAuth or any other method.