Código PHP:
$shtml = "Formulario enviado\n";
$shtml .= "Nombre: " . $HTTP_POST_VARS["Nombre"] . "\n";
$shtml .= "Email: " . $HTTP_POST_VARS["Email"] . "\n";
$shtml .= "Comentarios: " . $HTTP_POST_VARS["Comentarios"] . "\n";
$sfrom="[email protected]"; //cuenta que envia
$sdestinatario="[email protected]"; //cuenta destino
$ssubject="Formulario PHP"; //subject
$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);
Cita:
Que puedo hacer? Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Domains\xxxx.com.mx\wwwroot\email1.php on line 37