Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/01/2006, 14:52
Avatar de az@el
az@el
 
Fecha de Ingreso: mayo-2005
Mensajes: 20
Antigüedad: 18 años, 10 meses
Puntos: 0
Mensaje Aqui está el código

La variable mail2 es la tercera dirección a la quq uiero q lllegue el formulario. Gracias!!!

<?php
/************************************************** **********************/
/* PHP ContactMe v1.0 */
/* =========================== */
/* */
/* Written by Steve Dawson - */
/* Freelance Web Developer - PHP, Perl and Javascript programming */
/* */
/* This program is free software. You can redistribute it and/or modify */
/************************************************** **********************/
##
## -- --------- START OF CONFIG SECTION --------- ##
## STEP ONE: Change the info below to your details

$SendToEmail = "[email protected]"; ## Your Email Address
$YourWebsiteURL = "esp.com.mx"; ## Your Website URL
$YourName = "Atención a Clientes > English for Specific Purposes"; ## Your Name or Company Name
$yoursubject = "Justificación de Clases"; ## The Email Subject Line
$ThankyouURL = "confirmacion.html"; ## Send them here after they have filled in the form

## STEP TWO: Change details below for the email footer of the confirmation email.
$EmailFooter = "
Su Solicitud ha sido registrada, estaremos en contacto con Usted a la brevedad posible";
## ---------- END OF CONFIG SECTION ------------- ##

## If they call this page direct from the browser, send them away because they havent filled in the form!
if(!isset($email)) {
header("location: $YourWebsiteURL"); ## Redirect them to your websites front page
exit();
}

## Send the Email to you ....
$yoursubject = "$yoursubject";
$emailtext = "
-----------------------------------------------------------------------------
".$yoursubject."
-----------------------------------------------------------------------------

".$nombre." ha enviado una Solictud de Justificación de Clases para ABBOTT:

Empresa: ".$empresa."
Nombre: ".$nombre."
Email: ".$email."
Teléfono: ".$phone."
Extensión: ".$ext."

----------------------------
JUSTIFICACION
----------------------------
Día: ".$dia."
Mes: ".$mes."
Año: ".$ano."
Profesor: ".$prof."
Motivo de la cancelación: ".$motivo."
Jefe inmediato: ".$mail2."

Solicitud enviada para dar seguimiento.

".$YourName."
".$YourWebsiteURL."
";
$yoursubject = stripslashes($yoursubject);
$emailtext = stripslashes($emailtext);
@mail("$SendToEmail", $yoursubject, $emailtext, "From: $email"); ## Email Sent

## Now lets send a thankyou email to the sender
$emailsubject = "RE: ".$yoursubject."";
$autoemail = "
-----------------------------------------------------------------------------
Confirmación de ".$yoursubject."
-----------------------------------------------------------------------------

Estimado(a) ".$nombre.", Gracias por usar nuestros servicios en Línea.
Esta es una confirmación de su Solicitud:

Empresa: ".$empresa."
Nombre: ".$nombre."
Email: ".$email."
Teléfono: ".$phone."
Extensión: ".$ext."

----------------------------
JUSTIFICACION
----------------------------
Día: ".$dia."
Mes: ".$mes."
Año: ".$ano."
Profesor: ".$prof."
Motivo de la cancelación: ".$motivo."
Jefe inmediato: ".$mail2."

".$EmailFooter."
";
$yoursubject = stripslashes($yoursubject);
$autoemail = stripslashes($autoemail);
@mail($email, $emailsubject, $autoemail, "From: $SendToEmail"); ## Email Sent

## The emails have both been sent, so we should now send the user to a confirmation page
header("Location: $ThankyouURL"); ## Don't change this, change the $ThankyouURL at the top!
exit;
## That's it !
?>