Mira tengo este codigo:
<?php
$sfrom="
[email protected]"; //cuenta que envia
$sdestinatario="
[email protected]"; //cuenta destino
$ssubject="Probando"; //subject
$shtml="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);
Pero me sale este error:
Warning: Failed to Connect in \\172.21.6.16\s004\crushe.com.mx\Correo.php on line 10