尝试使用MAIL功能时出现500错误 [英] 500 error when trying to use the MAIL function

查看:209
本文介绍了尝试使用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);

返回:


500错误

the 500 error




  1. 如何启用详细的错误消息?

  2. 是否有需要安装的东西以获取邮件功能的工作?

  1. How do I enable detailed error messages?
  2. 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...

http://geekswithblogs.net/tkokke/archive/2009/05/31/sending-email-from-php -on-windows-using-iis.aspx

这篇关于尝试使用MAIL功能时出现500错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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