GoDaddy SMTP Server

snippet of how to send email from within GoDaddy web hosting

mail.From = new MailAddress(fromAddress);
mail.To.Add(toAddress);
mail.Subject = subject;
mail.IsBodyHtml = true;
mail.Body = htmlconvert(bodytext);
 
//Connect to server and send message.
SmtpClient smtp = new SmtpClient();
smtp.Host = "relay-hosting.secureserver.net";
smtp.Send(mail);

PWSK- Handler.ashx

The Handler.ashx is used to dynamically return a image from a query string. Http handler is similar to regular web form, only faster (~10%, compare with web form) with less functionality.
IsReusable property is usually set to be true to reduce memory footprint and improve performance.
In the sample application pictures are taken from a database. If one prefer to use file system instead then the handler can be changed to.
HttpResponse r = context.Response;
r.ContentType = "image/png";
r.WriteFile("Logo1.png");

Personal Website Starter Kit

It is going to be a summary of my PWS learning experience.
First some links that I read during the process.

Due to some reason, all connections are NOT closed in PhotoManager.cs after query execution. I will write a common data access code (a static class) to deal with it.