Ver Mensaje Individual
  #6 (permalink)  
Antiguo 28/06/2004, 17:07
Avatar de Animanganime
Animanganime
 
Fecha de Ingreso: noviembre-2003
Ubicación: Tenerife
Mensajes: 90
Antigüedad: 20 años, 5 meses
Puntos: 0
Sigue fallando

He instalado el servidor y lo puse a funcionar pero sigue fallando:

[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
sendmail_from = [email protected] for Win32 only

Así está ahora configurado mi php.ini y el servidor funcionando.

El código del mail es el siguiente:

$sfrom="[email protected]"; //Remitente
$sdestinatario="[email protected]"; //Destinatario
$ssubject="Prueba de Correo."; //Asunto
$shtml="El servidor de correo SMTP funciona correctamente."; //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 da un error del servidor, justo cuando llega a la función mail.

Saludos!!