Message.From = TextBox1.Text;
Message.To = TextBox2.Text;
Message.Subject = "主题、标题11";
Message.Body = "内容22";
Message.BodyFormat = MailFormat.Html;//编码
Message.Priority = MailPriority.High;
SmtpMail.SmtpServer = "smtp.qq.com";//邮件服务器,比如163即为"smtp.163.com",126即为"smtp.126.com"
Message.Fields.Add(" http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
Message.Fields.Add(" http://schemas.microsoft.com/cdo/configuration/sendusername", "17145886");
Message.Fields.Add(" http://schemas.microsoft.com/cdo/configuration/sendpassword", "tomylove2008");
SmtpMail.Send(Message);
Label1.Text = "成功";
运行出现下面错误代码
·t???÷?ü??á?·¢?tè?μ??·?£·t???÷?ìó|?a: 503 Command Error
503 Command Error 503错误命令