Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/02/2005, 05:44
Paranoid
 
Fecha de Ingreso: diciembre-2003
Mensajes: 222
Antigüedad: 20 años, 3 meses
Puntos: 2
error mandando mail

A ver, nunca he intentado mandar un mail con php, y he visto una funcion en las FAQ que es la siguiente:

$sfrom="[email protected]"; //cuenta que envia
$sdestinatario="[email protected]"; //cuenta destino
$ssubject="[email protected]"; //subject
$shtml="[email protected]"; //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 al usarla me da el sig error.



Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\minixampp\minixampp\htdocs\proconsa\back\includ e\funciones_generales.php on line 15

Muchas gracias a todos