SmtpClient.Send() complains of incorrect no of overloads when passing in MailMessage object
<p>I have this code written in .NET 4.0 using VS2010 Ultimate Beta 2:</p>

<pre><code>smtpClient.Send(mailMsg);
</code></pre>

<p>smtpClient is a reference to SmtpClient (I have the relevant references added), and likewise for mailMsg (is MailMessage) - there are no errors stating anything like check for missing assemblies.</p>

<p>However, I keep getting an error saying that I have the incorrect no of overloads, when SmtpClient takes either a MailMessage object or the To address, From address, Subject, etc.</p>

<p>Why doesn't this code work? Totally confused.</p>

<p>Thanks</p>
