The address is as follows:
Http://www.codeproject.com/KB/aspnet/aspnetemailusinggmail.aspx
Public static void Sendmail (string to, string from, string subject,
String body, string username, string password)
{
/// SMTP config
Smtpclient client = new smtpclient ("smtp.gmail.com", 465 );
// Edit password and username
Client. Credentials = new networkcredential ("" + username + "@ gmail.com", password );
Client. enablessl = true;
Mail. Fields ["http://schemas.microsoft.com/cdo/configuration/sendusername"] =
"" + Username + "@ gmail.com ";
Mail. Fields ["http://schemas.microsoft.com/cdo/configuration/sendpassword"] = password;
Client. Credentials = new networkcredential ("USERNAME@gmil.com", "password ");
Mail. Fields ["http://schemas.microsoft.com/cdo/configuration/sendusername"] =
"USERNAME@gmail.com ";
Mail. Fields ["http://schemas.microsoft.com/cdo/configuration/sendpassword"] = "password ";
The author is from Sri Lanka (South Asian island ).