本文介绍了尝试使用MAIL功能时出现500错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们刚刚将我们的PHP 5.2 / IIS 8网站迁移到新的服务器。
We just migrated our PHP 5.2 / IIS 8 website to a new server.
我们无法使用MAIL功能。
We are unable to use the MAIL function.
mail($to, $subject, $message, $headers);
返回:
- 如何启用详细的错误消息?
- 是否有需要安装的东西以获取
邮件
功能的工作?
- How do I enable detailed error messages?
- is there something I need to install to get the
mail
function to work?
推荐答案
默认情况下,PHP使用sendmail,您需要将您的PHP设置配置为在Windows上使用SMTP服务器。
By default PHP uses sendmail, You need to configure your PHP setting to use a SMTP server on windows.
以下链接将帮助您开始...
The link below will get you started...
这篇关于尝试使用MAIL功能时出现500错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!