Send email using user's AD credentials

Oct 8, 2010 at 1:19 PM


I am wanting to use MailSystem.NET to send out mails to an smtp server using my current logged-on user's AD credentials.

I originally used System.Net.Mail.SmtpClient and set the credentials to the CredentialCache.DefaultNetworkCredentials and this works, is it possible to do something similiar using MS.NET without hard-coding my credentials.

I have chosen to use MS.NET over SmtpClient as I want to send digitally signed emails out and I havn't been able to find a solution todo this using SmtpClient.

Kind Regards,