28-01-2012, 09:16 PM
<?php
$headers = 'MIME-Version: 1.0' . "\n"; // Version MIME
$headers .= 'Content-type: text/html; charset=UTF-8'."\n"; // l'en-tete Content-type pour le format HTML
$headers .= 'Reply-To: '.MAILREPLY."\n"; // Mail de reponse
$headers .= 'From: "'.FROMMAIL.'"<'.MAILREPLY.'>'."\n"; // Expediteur
$headers .= 'Delivered-to: '.$to."\n"; // Destinataire
$header = "Reply-To: $email_expediteur <$email_expediteur>\n";
$header .= "Return-Path: $email_expediteur <$email_expediteur>\n";
$header .= "From: $email_expediteur <$email_expediteur>\n";
$header .= "Organization: $email_expediteur\n";
$header .= 'MIME-Version: 1.0'."\n";
$header_optional = '-f' . $email_expediteur; // pour le champs Return Path --> http://aide.sivit.fr/index.php?2007/10/2...ail-de-php
mail( $email_destinataire, $sujet, $message_txt_and_html, $header, $header_optional);
Citation :This is the mail system at host perso1.free.fr.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<xxxxxxxxx@free.fr>: host mx1.free.fr[xxxxxxxxx] said: 550 spam detected (in
reply to end of DATA command)