AYUDA CON FUNCIÓN PHP MAIL
| From: | Alexander Sanchez | Date: | Wed, 12 Apr 2006 18:41:41 +0000 |
| Subject: | AYUDA CON FUNCIÓN PHP MAIL | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-58548@lists.php.net to get a copy of this message | ||
HOLA
AQUÍ LES PLANTEO LA ITUACIÓN:
CÓMO HAGO PARA QUE NO APAREZCA mt000193@ malta.dattaweb.com (ES EL SERVIDOR DE CORREO) , Y EN VEZ
DE ESTO APAREZCA EL EMIAL DEL REMITENTE.(POR EJEMPLO : pepito@yahoo.com)
LE COLOCO MI CODIGO , EL QUE USO EN MI FORMULARIO:
<?php
// Handle POST method.
$name = $_POST['nombre'];
$email = $_POST['email'];
$phone = $_POST['telefonos'];
$country = $_POST['pais'];
$city = $_POST['ciudad'];
$infreq = $_POST['informacionrequerida'];
$comments = $_POST['comentarios'];
// Compose simple text message:
$message = &quot;Nombres y
Apellidos:$name\n\nEmail:$email\n\nTeléfono:$phone\n\nPaís:$country\n\nCiudad:$city\n\nInformación
Requerida:$infreq\n\nComentarios:$comments&quot;;
// Send message to bob@microsoft.com
mail(&quot;chilambalam1320@yahoo.com,anandha1320@yahoo.com&quot;,
&quot;Información Página web la ECOALDEA CHILAM BÁLAM&quot;,$message);
// Thank the generous user
echo &quot;<CENTER><h4
STYLE='FONT-FAMILY:VERDANA,ARIAL;COLOR:GREEN;'>Muchas Gracias,Pronto le estaremos
respondiendo!</h4></CENTER>\n&quot;;
?>
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or
less.