Foros del Web » Programando para Internet » PHP »

php y correo flash

Estas en el tema de php y correo flash en el foro de PHP en Foros del Web. Hola. tenglo el siguiente script que utilizo para , por medio de flash, enviar una suscripcion <? // Enter your contact email address here $adminaddress ...
  #1 (permalink)  
Antiguo 29/06/2005, 09:13
 
Fecha de Ingreso: diciembre-2004
Mensajes: 2
Antigüedad: 19 años, 4 meses
Puntos: 0
php y correo flash

Hola.
tenglo el siguiente script que utilizo para , por medio de flash, enviar una suscripcion

<?

// Enter your contact email address here
$adminaddress = "[email protected]";

// Enter the address of your website here include http://www.
$siteaddress ="http://www.misitio.com.ar";

// Enter your company name or site name here
$sitename = "nombre";

/************************************************** *****

No need to change anything below unless you want to add or subtract functions or change the wording of things sent back to the flash file ...

************************************************** *****/

// Gets the date and time from your server
$date = date("m/d/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 != ""):
mail("$email","Suscripción al sitio",
"Un navegante ha solicitado suscribirse al boletín informativo
email: $email

Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");

//This sends a confirmation to your visitor
mail("$email","Suscripción al boletín de Antonio Birabent",
"Hola
Gracias por suscribirte a mi boletín informativo.
Pronto tendrás novedades
Antonio

$siteaddress","FROM:$adminaddress");

//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Thank you for applying. You will receive a confirmation email shortly.";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";

endif;

?>

la pregunta es como hago para que cuando reciba el correo aparezca como remitente del correo quien completo el campo y no mi mismo correo (adminadress)
que debo cambiar?

Muchas gracias
  #2 (permalink)  
Antiguo 29/06/2005, 09:15
Avatar de eft0  
Fecha de Ingreso: junio-2003
Ubicación: Santiago - Chile
Mensajes: 635
Antigüedad: 20 años, 10 meses
Puntos: 9
La linea donde esta la funcion mail(), debes reemplazar por esta:

Código PHP:
//This sends a confirmation to your visitor
mail("$email","Suscripción al boletín de Antonio Birabent",
"Hola
Gracias por suscribirte a mi boletín informativo.
Pronto tendrás novedades
Antonio

$siteaddress"
,"FROM:$email"); 
Esto es todo.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 20:41.