| <?
function email($destinataire,$return,$object)
{
$desti = "$destinataire";
$sujet = "Mails en php";
$head = "essai@essai.com \n";
$head .= "X-Sender: <a-a-hebergement.com>\n";
$head .= "X-Mailer: PHP\n";
$head .= "Return-Path: <$return>\n";
$head .= "Content-Type: text/html; charset=iso-8859-1\n";
mail($desti, $sujet ,$object, $head);
}
?> |