我想编辑一个邮件客户端程序,请问我应该怎样通过程序通过smtp.的验证.我的程序无法成功,系统提示拒绝收信,请大家看看我的程序有什么问题,谢谢了
MailMessage myemail = new MailMessage();
myemail.From
= tb_add_source.Text.Trim();
myemail.To
= tb_add_direction.Text.Trim();
myemail.Subject = tb_summray.Text.Trim();
myemail.Body = tb_mail_content.Text.Trim();
myemail.BodyFormat = MailFormat.Text;
myemail.Fields.Add("http://shemas., "1");
myemail.Fields.Add("http://shemas., "lilan1221");
myemail.Fields.Add("http://shemas., "753951");
myemail.Fields.Add("http://shemas., 60);
SmtpMail.SmtpServer = "smtp.
SmtpMail.Send(myemail);