H
Howard
Using visual studio 2005 I am sending an email using a vaiable
Dim mail As New MailMessage()
and then later setting the recipient address by
mail.To = (e-mail address removed)
This works fine. However the compiler tells me that New MailMessage() is now
obsolete and that instead I should use
Dim mail2 As New System.Net.Mail.MailMessage()
But when I do and then try to set the To field using Mail2.To it tells me
this property is read only!
How do you set the TO field using the newer mailmessage class?
Howard
Dim mail As New MailMessage()
and then later setting the recipient address by
mail.To = (e-mail address removed)
This works fine. However the compiler tells me that New MailMessage() is now
obsolete and that instead I should use
Dim mail2 As New System.Net.Mail.MailMessage()
But when I do and then try to set the To field using Mail2.To it tells me
this property is read only!
How do you set the TO field using the newer mailmessage class?
Howard