开发者

Sending mail error in PHP on IIS

I am using a small script of php to send email through my IIS based server. 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  
    if(mail('sheer开发者_StackOverflowy_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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜