12-08-2006 12:29 PM
12-08-2006 01:20 PM
Relax Guy! Both you and hepman got posts in before I had time to try it myself and get a response in.
Anyway, if hepman is still paying attention, LV 7.1 is pretty bad about type inheritance. I tried using a straight type cast rather than a "To More Specific Class" and it seemed to work just fine. Though again, I was using 7.1.1f2.
12-08-2006 04:29 PM
MailMessage mail = new MailMessage();
mail.To = "me@mycompany.com";
mail.From = "you@yourcompany.com";
mail.Subject = "this is a test email.";
mail.Body = "Some text goes here";
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "my_username_here"); //set your username here
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "super_secret"); //set your password here
SmtpMail.SmtpServer = "mail.mycompany.com"; //your real server goes here
SmtpMail.Send( mail );
but I cannot fiend msg.Fields.Add
12-08-2006 07:14 PM
12-09-2006 12:50 PM