Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/09/2008, 11:09
Avatar de Triby
Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 15 años, 8 meses
Puntos: 2237
Respuesta: header en email() para indicar email sender

Código PHP:
$cabeceras "MIME-Version: 1.0\r\n";
$cabeceras .= "Content-type: text/html; charset=iso-8859-1\r\n";
$cabeceras .= "To: $to_name <$to_mail>\r\n";
$cabeceras .= "From: $from_name <$from_mail>\r\n";

if(
mail('[email protected]''tituloEmail'$cuerpoEmail$cabeceras )) {
    
// Correo enviado
} else {
    
// Correo no enviado


Última edición por Triby; 18/09/2008 a las 12:06 Razón: Simplificar código