its very easy to follow these code
copy past your application,
string htmlBody = strBuilder.ToString();
SmtpClient smtp;
System.Net.NetworkCredential basicAuth;
mail.Body = htmlBody.ToString();
smtp = new SmtpClient();
basicAuth = new System.Net.NetworkCredential("info@shreyastechsolutions.com", "shreyas2011");
smtp.Host = "mail.shreyastechsolutions.com";
smtp.UseDefaultCredentials = false;
smtp.Credentials = basicAuth;
try
{
smtp.Send(mail);
lblWarning.Text = "Email Sent successfully";
}
catch (SmtpException ex)
{
lblWarning.Text = "Email Sent Failed";
}
thanks
pavan