Re: AYUDA CON FUNCIÓN PHP MAIL
| From: | carlos Medina | Date: | Thu, 13 Apr 2006 09:25:50 +0000 |
| Subject: | Re: AYUDA CON FUNCIÓN PHP MAIL | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-58551@lists.php.net to get a copy of this message | ||
Hola Alexander,
llama la pagina "http://de3.php.net/manual/es/ref.mail.php"
saludos
Carlos
Alexander Sanchez wrote:
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;;
?>
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.