regarding sending mail to user
<pre><code>MailMessage message = new MailMessage();
message.From = new MailAddress("admin@mysite.com");
</code></pre>

<p>Now for fetching email entered by the user in the textbox, I wrote:-</p>

<pre><code> message.To.Add(Convert.ToString(txtEmail));
</code></pre>

<p>but this is not working..isn't this the correct way to add email address in "To" ?
txtEmail is the textbox's name..Its not giving any error or something..just not working..when I comment out this line of code..the code line next to it works..otherwise code stops working when it encounters this "To.Add " method..plz help..thnx</p>

<p><em><strong>[edit]
I changed it to</em></strong></p>

<pre><code>message.To.Add(txtEmail.ToString());
</code></pre>

<p>still not working</p>
