Re: tengo problemas con la funcion mail???
| From: | -AzTk- Alejandro Galindo | Date: | Tue, 08 May 2001 02:42:27 +0000 |
| Subject: | Re: tengo problemas con la funcion mail??? | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-9773@lists.php.net to get a copy of this message | ||
PERDONEN!! no hice bien el codigo, aqui ya esta funcionando bien,
espero sirva, bye!!
-AzTk-
<html>
<head><title>Mi manda correo</title></head>
<body bgcolor="white">
<?
if ($envia) {
mail($correo,$asunto,$cuerpo);
print("<center><h2>Ah enviando con exito su mail</h2></center>");
} else {
$salida = "
<form action='$PHP_SELF' method='post'>
Correo: <input type='text' name='correo'><br>
Asunto: <input type='text' name='asunto'><br>
Cuerpo: <input type='text' name='cuerpo'><br>
<center><input type='submit name='enviar'></center>
";
print($salida);
}
?>
</body>
</html>
--- -AzTk- Alejandro Galindo <alekga@yahoo.com> escribió: > Pues lo
tienes en todo, creo que no has aprendido bien php, mira un
> ejemplo funcionando seria
>
> <html>
> <head><title>Mi manda correo</title></head>
> <body bgcolor="white">
> <?
> if ($envia) {
> mail($correo,$asunto,$cuerpo);
> print("<center><h2>Ah enviando con exito su
> mail</h2></center>");
> } else {
> $salida = "
> <form action='$PHP_SELF' method='post'>
> Correo: <input type='text' name='correo'><br>
> Asunto: <input type='text' name='asunto'><br>
> Cuerpo: <input type='text' name='cuerpo'><br>
> <center><input type='submit name='enviar'></center>
> ";
> print($salida);
> }
> ?>
> </body>
> </html>
>
> a me equivoco???
>
> -AzTk-
>
> --- Felix Cano Perez <fcano@infonavit.gob.mx> escribió: > hola
> lista,
> tengo problemas con el comando mail...
> >
> > el codigo es:
> >
> > <HTML>
> > <HEAD>
> > <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
> > <TITLE></TITLE>
> > </HEAD>
> > <BODY>
> > <?
> >
> > mail($direccion,$asunto,$mensaje);
> >
> > echo "<H2>";
> > echo "el mensaje fue mandado a la direccino de correo<br>";
> > echo $direccion."<br>";
> > echo "</H2>";
> > ?>
> >
> > <form action="vacio.html">
> > <INPUT id=submit2 name=submit2 type=submit value="Continuar">
> > </endform>
> >
> > </FONT>
> > </BODY>
> > </HTML>
> >
> > no funciona, me manda el siguiente mensaje
> >
> > Warning: Failed to Connect in d:\sec\mmail.php on line 9
> >
> > no se si alguno me puede ayudar....
> >
> > Felix...
> >
> >
>
>
> _________________________________________________________
> Do You Yahoo!?
> Construye tu página personal en Yahoo! GeoCities. ¡Es fácil,
> rápido y gratis! http://geocities.yahoo.com.mx
>
>
---------------------------------------------------------------------
> Archivo On-line: http://www.phpes.com/
> Manual PHP en español: http://www.php.net/manual/es/
> Para dar de baja la suscripción, mande un mensaje a:
> lista-unsubscribe@phpes.com
>
_________________________________________________________
Do You Yahoo!?
Construye tu página personal en Yahoo! GeoCities. ¡Es fácil,
rápido y gratis! http://geocities.yahoo.com.mx