SmtpClient client = new SmtpClient("smtp.qq.com", 465);
NetworkCredential cr = new NetworkCredential("****************@qq.com", "**********");
client.Credentials = cr;
MailMessage mail = new MailMessage();
MailAddress addfrom = new MailAddress("...............", "gfd");
mail.From = addfrom;