The remote name could not be resolved: 'smtp.163.com'

 

在做发邮件功能的时候,出现这么个错误 如下:


The remote name could not be resolved: 'smtp.163.com'
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.Net.WebException: The remote name could not be resolved: 'smtp.163.com'

 

 

 

 

Web.config 里的配置节点为:

 

    <add key="PostAddress" value=test@163.com/>
    <add key="PostName" value="test"/>
    <add key="PostPassword" value="111111"/>
    <add key="PostService" value="'smtp.163.com'"/>

我是把参数都写到了web.config里。

 

 

解决办法  把 'smtp.163.com'  改成 对应的服务器地址就可以了。

 

 


 
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
在您提供的引用中,问题是关于.less文件中导入的依赖项不能解析的情况。解决这个问题的方法是安装lib-flexible,并添加相应的转换器。 首先,您需要通过运行以下命令来安装lib-flexible: ``` npm install lib-flexible --save-dev ``` 安装完成后,您可以在路径上使用lib-flexible,将其作为解析.less文件的依赖项。 接下来,您需要在您的entry_point.less文件中添加转换器,以将其自动转换为相应的.css文件。您可以使用以下配置: ``` transformers: - less_node: entry_point: web/builder.less ``` 这将告诉系统将entry_point.less文件转换为CSS,并将其输出到相应的位置。 通过执行这些步骤,您应该能够解决导入但无法解析的.less文件依赖项的问题,并成功地将其转换为CSS文件。<span class="em">1</span><span class="em">2</span> #### 引用[.reference_title] - *1* [bug:The following dependencies are imported but could not be resolved lib-flexibleflexible](https://blog.csdn.net/m0_67390969/article/details/123420288)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* [less_node:Dart .less 到 .css 转换器](https://download.csdn.net/download/weixin_42136365/20058530)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

一直学习

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值