string host = "smtp.sina.com.cn";
int port=25;
SmtpClient smtp = new SmtpClient(host,port);
smtp.Credentials = new System.Net.NetworkCredential("****@sina.com", "****");
MailMessage mailmsg = new MailMessage ("****@sina.com","####@163.com","test","hexiaoertest");
//mailmsg.From="";//邮件发送方地址
//mailmsg.To="";//邮件接收方地址
//mailmsg.Subject="";//邮件标题
//mailmsg.Body="";//邮件内容
smtp.Send(mailmsg);
MessageBox.Show("ok");
int port=25;
SmtpClient smtp = new SmtpClient(host,port);
smtp.Credentials = new System.Net.NetworkCredential("****@sina.com", "****");
MailMessage mailmsg = new MailMessage ("****@sina.com","####@163.com","test","hexiaoertest");
//mailmsg.From="";//邮件发送方地址
//mailmsg.To="";//邮件接收方地址
//mailmsg.Subject="";//邮件标题
//mailmsg.Body="";//邮件内容
smtp.Send(mailmsg);
MessageBox.Show("ok");