configuring the SmtpServer to send email
<p>I'm trying to send an email from my website that I've upgraded from .NET 1.1 to 2.0. The 1.1 version set the <code>SmtpServer</code> like this:</p>

<pre><code>System.Web.Mail.SmtpMail.SmtpServer = Current.Application.Item("SMTPServer")
</code></pre>

<p>It's using the <code>SmtpMail.SmtpServer</code> property from the old 'System.Web.Mail' namespace. </p>

<p>How do I set the <code>SmtpServer</code> without using any classes/properties from the old namespace? I've seen a couple of examples online that set the <code>SmtpServer</code> in the web.config file. </p>

<p>Is this the only way? How can you use an application setting in web.config ?</p>
