简体   繁体   English

IIS服务器上的PHP联系人表单?

[英]PHP Contact Form on IIS Server?

I'm running a Joomla website where all the files are stored on an IIS Windows server, and I've created a PHP Contact Form, one of Joomla's modules. 我正在运行一个Joomla网站,其中所有文件都存储在IIS Windows服务器上,并且创建了一个PHP联系人表单,即Joomla的模块之一。

For some reason, the Contact Form will not send out any mail. 由于某些原因,联系表将不会发送任何邮件。 There is always an error, no matter what setting you change it to in Joomla (SMTP, Sendmail or PHP Mail Function). 无论您在Joomla中将其更改为什么设置(SMTP,Sendmail或PHP Mail Function),始终存在错误。 With PHP Mail function it says 'Cannot Instantiate Mail Function', and there are errors in the others too. 使用PHP Mail功能时,它说“无法实例化邮件功能”,其他功能也有错误。

Has anybody encountered these errors before? 有人遇到过这些错误吗? is there someone who knows a solution to these errors? 是否有人知道这些错误的解决方案? I'm 99% sure its because its running on IIS, as I've used the same module on a Joomla system before and it works (running on FTP web host). 我有99%的把握是因为它在IIS上运行,因为我以前在Joomla系统上使用过相同的模块并且它可以工作(在FTP Web主机上运行)。

Hope someone can help, if you need anymore info I'll be happy to share it. 希望有人可以提供帮助,如果您需要更多信息,我们将很乐意与您分享。

Kind Regards, 亲切的问候,

Snakespan 蛇跨

I don't think your issue is Joomla related. 我认为您的问题与Joomla没有关系。 You may need to configure SMTP in your php.ini 您可能需要在php.ini中配置SMTP

Please see this tutorial 请参阅本教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM