简体   繁体   中英

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('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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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