![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/05/2004, 04:22
|
| | Fecha de Ingreso: marzo-2004
Mensajes: 91
Antigüedad: 20 años, 11 meses Puntos: 1 | |
Yo tambien Yo tambien me e instalado el mini relay en el php.ini he puesto:
[mail function]
; For Win32 only.
SMTP = 127.0.0.1
; For Win32 only.
;sendmail_from = NULL
y en la pagina he puesto:
$sfrom="info@******.net"; //cuenta que envia
$sdestinatario="$row4[email]"; //cuenta destino
$ssubject="Clave y Pass WEB ****"; //subject
$shtml="Gracias por registrarse en ****.USUARIO:$usur PASS:$pass. En la WEB podra cambiar el usuario y password.Un saludo"; //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 error:
Warning: Failed to Receive in c:\phpdev\www\public\web3\insdaweb.php on line 120
La linea 120 es:
mail($sdestinatario,$ssubject,$shtml,$sheader);
Ademas el miniRelay se queda sin leer nada.
Gracias. |