
17/07/2005, 11:24
|
 | | | Fecha de Ingreso: mayo-2003 Ubicación: mX
Mensajes: 683
Antigüedad: 21 años, 9 meses Puntos: 60 | |
Hola, solo debes remplazar tu php por este.. Código PHP: <?
/************************************************** ****
**
** PHP Mailer 2.0
**
** This script is easy to configure. Just change the variables below to
** suit your environment and PHP does the rest!
**
** http://www.bigjolt.com
**
************************************************** *****/
/************************************************** *****
Enter your site details below!
************************************************** *****/
// Enter your contact email address here
$adminaddress = "[email protected]";
// Enter the address of your website here include http://www.
$siteaddress ="http://www.midominio.com/mailform.php";
// Enter your company name or site name here
$sitename = "LAEMPRESAENCUESTIÓN";
/************************************************** *****
No need to change anything below ...
************************************************** *****/
$headers = "Content-Type:text/html; charset=utf-8";
// Gets the date and time from your server
$date = date("d/m/Y H:i:s");
// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
//Process the form data!
// and send the information collected in the Flash form to Your nominated email address
if ($action != ""):
$cname = utf8_decode("$cname");
$fname = utf8_decode("$fname");
$asunto = utf8_decode("$asunto");
$lname = utf8_decode("$lname");
$comments = utf8_decode("$comments");
mail("$adminaddress","$fname",
"Consulta recibida en $sitename\n
Nombre de la empresa: $cname\n
Nombre de la persona: $fname\n
Puesto de trabajo: $lname\n
E-mail: $email\n
Teléfono: $telno\n
Asunto: $asunto\n
Mensaje:
------------------------------
$comments;
------------------------------
Fecha/Hora: $date","FROM:$adminaddress","$headers");
//This sends a confirmation to your visitor
mail("$email","Gracias por visitar $sitename",
"Hola $fname,\n
Su consulta ha sido recibida.
En breve contestaremos a su petición.
$sitename
$siteaddress","FROM:$adminaddress");
//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Su consulta ha sido recibida.
En breve contactaremos con usted.
LAEMPRESAENCUESTIÓN
";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";
endif;
?>
Última edición por _ssx; 17/07/2005 a las 11:37 |