How can I use a variable to define MailAddress toAddress in c#?
<p>I have an ASP.NET 4.0 aspx page from which I wish to send an email to the recipient specified in a text box named "supervisoremailTextBox". Is there any way that I can specify a variable as the recipient email address.  The code I have used which doesn't work is shown below:</p>

<pre><code>MailAddress fromAddress = new MailAddress("address@domain.co.uk", "Sender Name");
MailAddress toAddress = new MailAddress("supervisoremailTextBox.Value");
message.From = fromAddress;
message.To.Add(toAddress); 
</code></pre>

<p>Sorry if this a really dumb question and thanks in advance for your help.</p>
