MailMessage mail = new MailMessage();
System.Net.NetworkCredential cred = new System.Net.NetworkCredential("mail", "068177982");
mail.To.Add(new MailAddress("someonefrom@somehostmail.com"));
mail.Subject = "Test send mail";
mail.From = new MailAddress("someoneto@somehostmail.com");
mail.IsBodyHtml = true;
mail.Body = "kalllayas";
string client = "smtp.gmail.com";
SmtpClient smtp = new SmtpClient(client);
smtp.UseDefaultCredentials = false;
smtp.EnableSsl = true;
smtp.Credentials = cred;
smtp.Port = 587;
smtp.Send(mail);
## using System.Net.Mail ;