Archive for June, 2007

How to set up database mail in SQL Server 2005

June 29th, 2007

One of the great improvements in SQL Server 2005 is that it no longer requires an Exchange Server in order to send email. One of the most basic uses of email in SQL Server is to notify someone if a job fails – a backup, for example.
Here is a link to a most excellent article [...]

Blank popups in Joomla

June 20th, 2007

If you are using Joomla and your popups come up blank (for example, the add a link window or the HTML window) here is a solution.
In the configuration.php file, edit the $mosConfig_live_site line so that it reads ‘http://www.yoursite.com’ instead of ‘http://yoursite.com’. In other words, add the www to the URL.
For a more in-depth discussion [...]

Recursive method to reset controls in a ControlCollection

June 15th, 2007

This is a shared public method used to recursively interate through the controls in a control collection and set specified controls to an empty or unselected state.
First, I build two private shared helper methods to deal with an individual control. The first one checks to see what kind of control it is:
‘Helper function to [...]

Using System.Net.Mail namespace to send email

June 6th, 2007

Here’s a little demo of how to use the System.Net.Mail namespace to have your application automatically send an email. This sample is a class method that sends an email notification to the developer/webmaster/website owner/whoever when a new user registers on the site.
First, some set up. I keep the values for the From email [...]