I have an application not of my own design but I need to add authentication to the smtp mailer.
I found the following code for VB.net
msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1") ;
msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "user");
msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "password");
I get the following error when trying to use this in VJ#
Cannot find field 'Fields' in class 'System.Web.Mail.MailMessage'
Can anyone point me in the right direction. I have a client who cannot recieve emails on there web page anymore and they are desperate.
Thanks