Running simple scripts for an asp.net website
<p>Sometimes I need to run something on my website. For instance, right now I want to send a mail out from the support account to someone.</p>

<p>To do this, I plan to create a temp webpage, then put some code in the <code>page_load</code> event, then delete the webpage:</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
   String notificationMessage = "Email body.";
   Mailer.SendMail("targetemail@gmail.com", "Email header", notificationMessage);
}
</code></pre>

<p>This is a bit silly. However, it is fairly convinient for accessing stuff I've set in web.config, like sql servers and mailing modules.</p>

<p>Is there a better way to do this?</p>
