Mar 23, 2006 02:53 PM|linkyossy|LINK
I configured the System.Net.Mail and everything is working fine now. My problem is how do I declare the toaddress as a variable. I have a textbox for email address, so user can enter their email address in. I would like to reference the textbox content as
the to address. I tried the following but received error.
Error: value of type "String" cannot be converted to Net.Mail.MailAddress.
"Sample Subject", "Successsful completion").
What do I change my webconfig file to. i.e the
smtp from - since I want to declare the from as a variable.
Please would appreciate all the help. Thanks