你的smtp是什么服务器?你的发送代码如何?
smtp 一般不需要特别配置即可发送出去,关键是dns设定要正确
smtp 一般不需要特别配置即可发送出去,关键是dns设定要正确
解决方案 »
- WCF客户端和服务器之间的连接问题。。
- 关于VS窗体应用程序
- 急,急,急,Register 引用位置发生变化,图片显示不出??
- GridView中有多个联动的下拉类表的问题
- 异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例
- FolderBrowserDialog 怎么记录上次打开的路径
- datalist+sql语句数据帮定问题
- [求救].net中多线程子线程执行结束的问题
- UDP异步发送,SendToAsync函数发完之后怎么知道
- 关于时间类型的查询问题,请赐教!
- 请问如何在水晶报表中每隔3行显示一次title?
- 新建windowsapplication项目,给我弹出“找不到文件或程序集的名称“system”,或找不到他的一个依赖集。”是什么意思呀?该怎么解决呀?
public void emailsend(string address,string body)
{
MailMessage message = new MailMessage();
message.From="[email protected]";
message.BodyFormat = MailFormat.Text;
message.Body = body;
message.Subject = "请不要用该地址回信";
message.Priority = MailPriority.Normal;
message.To = address;
SmtpMail.SmtpServer = "";
SmtpMail.Send(message);
不过你可以设置SmtpServer。如果通常Smtp服务器都要求SMTP验证,而微软的MailMessage不支持SMTP验证,所以用别人的SMTP服务器也很麻烦。
出错信息是拒绝访问。
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.UnauthorizedAccessException: 拒绝访问。
真是有点搞不懂了