I have a program I'm working on trying to find out how I could do this. Currently I'm using System.Net.Mail to send smtp messages. Our smtp server (office 365) requires authentication to send outgoing mail. Our office 365 is paired to our domain with Single Sign on and AD so our credentials are synced with Microsoft Office 365. How can I use the Kerberos tokens to send mail without having to put NetworkCredential basicCredential = new NetworkCredential(username, password) in plain text? Is this even possible?
Currently sending mail via
NetworkCredential basicCredential = new NetworkCredential("<<username>>", strPassword);
client.Credentials = basicCredential;
client.EnableSsl = true;
client.Send(message);
Basically I want the app to take my windows username and password and send the messages.
Thanks