Re: Envio de Mails con PHP - Completo
| From: | administrator | Date: | Mon, 16 Jul 2001 15:31:23 +0000 |
| Subject: | Re: Envio de Mails con PHP - Completo | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-12295@lists.php.net to get a copy of this message | ||
Este lo hice yo , simple y efectivo. Sorry por el otro , es q le di
enviar sin querer.
Alberto Ferrer
<head>
<title>Formulario De Contacto</title>
<font face="verdana">
<?
if($name && $email && $besked) {
mail("admin@webproffeciona.com","Contacto Desde LA Web - $name","
Nombre: $name
Email: $email
Telefono: $site
$besked");
echo("<hr size=\"1\">");
echo("Mensaje Enviado!!");
echo("<hr size=\"1\">");
} elseif ($send) {
echo("<hr size=\"1\">");
echo("Para Que Se Le Conteste Complete Los Datos");
echo("<hr size=\"1\">");
}
?>
<form action="<? $PHP_SELF;?>" method="post">
<table border="0" width="24%">
<tr>
<td width="10%"><b>Nombre: </b></td>
<td width="90%"> <input type="text"
name="name"></td>
</tr>
<tr>
<td width="10%"><b>Email: </b></td>
<td width="90%"> <input type="text"
name="email"></td>
</tr>
<tr>
<td width="10%"><b>Telefono: </b></td>
<td width="90%"> <input type="text" name="tel"
value="0297-"></td>
</tr>
</table>
<p style="word-spacing: 0; margin: 0"><u>Dejenos su Comentario Y
</u></p>
<p style="word-spacing: 0; margin: 0"><u>Sera Contestado A LA
Brevedad.<br>
</u>
<textarea name="besked" rows="8"
cols="40"></textarea><br><br>
<input type="submit" name="send" value="Enviar!">
</form>
</p>
</html>