estoy intentando con este ejamplo de los Faq de PHP y me da el siguiente error
Código PHP:
<?php
$sfrom="[email protected]"; //cuenta que envia
$sdestinatario="[email protected]"; //cuenta destino
$ssubject="demo"; //subject
$shtml="mensaje de prueba"; //mensaje
$sheader="From:".$sfrom."\nReply-To:".$sfrom."\n";
$sheader=$sheader."X-Mailer:PHP/".phpversion()."\n";
$sheader=$sheader."Mime-Version: 1.0\n";
$sheader=$sheader."Content-Type: text/html";
mail($sdestinatario,$ssubject,$shtml,$sheader);
?>
Warning: Failed to Connect in c:\inetpub\wwwroot\phptest\LegGrpVto01\mail.php on line 10
bueno desde ya muchas gracias