string v_sendMailUserName = "userName";//
string v_sendMailPassword = "userPwd";//
string v_sendMailAddress ="xx@xx.com";//
string v_receiveMailAddress ="xx@xx.com";//
string v_mailSubject = "";//
SmtpClient smtp = new SmtpClient(v_smtpAddress);
smtp.Credentials = new System.Net.NetworkCredential(v_sendMailUserName, v_sendMailPassword);
MailMessage mes = new MailMessage();
mes.From = new MailAddress(v_sendMailAddress);
mes.To.Add(v_receiveMailAddress);
mes.Subject = v_mailSubject;
mes.Body = @"
this is test!
";
mes.IsBodyHtml = true;//set html format