怎么样发邮件?

omnipotent 2004-04-30 07:59:16
string from="100200@123.com";
string to="100200@124.com";
string subject="This is a test mail message";
string body="Hi,happy everyday!!";
SmtpMail.SmtpServer="192.168.1.150";
SmtpMail.Send(from,to,subject,body);
就这么一个简单的小问题,老是出现协议错误,不知道什么原因,望指点!
...全文
147 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
omnipotent 2004-05-04
  • 打赏
  • 举报
回复
老兄,还是不行,邮件根本没有到达对方呀?
ALong_Yue 2004-04-30
  • 打赏
  • 举报
回复
//SmtpMail.SmtpServer="192.168.1.150";

111,093

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧