Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/11/2009, 23:26
Avatar de Infernal
Infernal
 
Fecha de Ingreso: septiembre-2004
Ubicación: Tamaulipas, Mexico
Mensajes: 124
Antigüedad: 19 años, 7 meses
Puntos: 0
Respuesta: Funcion mail VS clase phpmailer

Código PHP:

<?php
$to      
'[email protected]';
$subject 'the subject';
$message 'hello';
$headers 
    
'From: [email protected]"\r\n" .
    
'Reply-To: [email protected]"\r\n" .
    
'Received: from mail.example.com' "\r\n" .
    
'X-Mailer: PHP/' phpversion();

mail($to$subject$message$headers);
?>
http://en.wikipedia.org/wiki/E-mail#Header_fields
http://www.php.net/manual/en/function.mail.php