Re: tengo problemas con la funcion mail???
| From: | -AzTk- Alejandro Galindo | Date: | Wed, 09 May 2001 00:27:36 +0000 |
| Subject: | Re: tengo problemas con la funcion mail??? | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-9822@lists.php.net to get a copy of this message | ||
si, perdon, se me fue una r
<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='envia'></center>
";
print($salida);
}
?>
</body>
</html>
-AzTk-
--- Felix Cano Perez <fcano@infonavit.gob.mx> escribió: > hola
alejandro,
>
> ya probe tu codigo y no funciona, no manda el mail...
> tal vez te tengo que dar mas informacion de mi servidor...
>
> trato de usar la funcion mail, con un servidor apache bajo windows
> 2000, no
> se si eso tenga algo que ver por lo cual no funciona la funcion
> mail...
>
> probe el codigo que me mandaste y simplemente no hace nada,
> proporciono la
> informacion que me pide que es la direccion, el asunto y el cuerpo
> y lo
> mando y simplemente no me dice nada, ni manda nada...
>
> ¿tengo que configurar algo en el php.ini o en el apache para poder
> mandar
> mails con la funcion mail??
>
> gracias..
> Felix
> ----- Original Message -----
> From: "-AzTk- Alejandro Galindo" <alekga@yahoo.com>
> To: <lista@phpes.com>
> Sent: Monday, May 07, 2001 9:42 PM
> Subject: Re: [PHP-ES] tengo problemas con la funcion mail???
>
>
> > 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
> >
> >
>
---------------------------------------------------------------------
> > 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
>
>
>
---------------------------------------------------------------------
> 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