ASP网站上的查询表单错误 [英] Enquiry form error on ASP website

查看:54
本文介绍了ASP网站上的查询表单错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我被迫帮助一个ASP网站的朋友,我是一个php家伙,所以我要拔头发了!由于迁移了该ASP网站的托管后,在线查询表单已停止工作,因此我已将web.config设置更新为新的托管详细信息,如下所示:

Hey guys,

I got roped into helping out a friend with an ASP website, I''m a php guy so I''m pulling my hair out! Since migrating the hosting for this asp website the online inquiry form has stopped working, I''ve updated the web.config settings to the new hosting details as below:

<appSettings>
<add key="sitelevel" value="2"/>
<add key="sign" value="$" />
<add key="siteurl" value="http://www.domain.com/" />
<add key="fromemail" value="sales@domain.com" />
<add key="mailusername" value="sales@domain.com" />
<add key="mailpassword" value="removed" />
<add key="mailserver" value="mail.domain.com" />
</appSettings>



每当有人提交查询时,它只会返回错误:

发送邮件失败."

我已经使用telnet连接到端口25上的邮件服务器,并且看起来工作正常.

我在这里把头扑在墙上,所以任何关于看哪里的建议都将不胜感激.



Whenever someone submits the enquiry it just returns the error:

"Failure sending mail."

I''ve used telnet to connect to the mail server on port 25 and it seems to work just fine.

I''m bashing my head against a wall here so any advice on where to look would be much appreciated.

推荐答案

"/> < add key = " = " /> < add key = " = " /> < add key = " = " /> < add key = " = " /> < add key = " = " /> </ appSettings >
" /> <add key="siteurl" value="http://www.domain.com/" /> <add key="fromemail" value="sales@domain.com" /> <add key="mailusername" value="sales@domain.com" /> <add key="mailpassword" value="removed" /> <add key="mailserver" value="mail.domain.com" /> </appSettings>



每当有人提交查询时,它只会返回错误:

发送邮件失败."

我已经使用telnet连接到端口25上的邮件服务器,并且看起来工作正常.

我在这里把头撞在墙上,所以任何关于看哪里的建议都将不胜感激.



Whenever someone submits the enquiry it just returns the error:

"Failure sending mail."

I''ve used telnet to connect to the mail server on port 25 and it seems to work just fine.

I''m bashing my head against a wall here so any advice on where to look would be much appreciated.




如果有帮助,您可能会看到此链接.

asp.net中的邮件概念


如果需要帮助,请不要忘记投票,以便其他人可以考虑作为答案...

阿尔·莫耶
问候
Hi,

You may see this link if could help.

mail concept in asp.net


Please do not forget to vote if help, so that others may consider as answer...

Al Moje
Regards,


尝试以下方法:
通过System.Net.Mail发送电子邮件
在使用GoDaddy虚拟主机托管时在Web.Config中配置电子邮件设置
Try the following approach:
Sending Email with System.Net.Mail
Configuring Email Settings in Web.Config When hosting with GoDaddy Web Hosting


这篇关于ASP网站上的查询表单错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆