简体   繁体   English

在 IIS 上的 PHP 中发送邮件错误

[英]Sending mail error in PHP on IIS

I am using a small script of php to send email through my IIS based server.我正在使用 php 的小脚本通过我的基于 IIS 的服务器发送 email。 When I try to send mail an error occurrs:当我尝试发送邮件时发生错误:

"The specified CGI application exceeded the allowed time for processing. The server has deleted the process." 

Although simple php script is working fine, my sample code is given below.虽然简单的 php 脚本运行良好,但我的示例代码如下所示。

<?php  
    if(mail('sheery_1@hotmail.com','test subject','test message')){
      echo('ok');
    } else{
      echo('not ok');
    }
?>

You must configure your home server as this feature is ready pre configured on hosting servers.您必须配置您的家庭服务器,因为此功能已在托管服务器上预先配置。

Try to change the php.ini and change the smtp paths etc尝试更改 php.ini 并更改 smtp 路径等

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

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