Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/06/2005, 09:13
leesandro
 
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