per completezza metto anche il codice che bisognerebbe modificare:
Codice PHP:
// encode_mail_txt($from_name,$charset)
$headers = 'MIME-Version: 1.0'. $CRLF;
$headers .= ($format == 1) ? "Content-Type: text/html; charset=$charset".$CRLF : "Content-Type: text/plain; charset=$charset".$CRLF;
// $headers .= "Content-transfer-encoding: 8bit". $CRLF;
$headers .= 'Date: ' . gmdate('D, d M Y H:i:s Z', time()) . $CRLF;
// $headers .= 'To: "' . encode_txt_mail_header($to_name) . '" <'. $to_email .'>'. $CRLF;
$headers .= 'From: "' . encode_txt_mail_header($from_name) . '" <'. $from_email .'>'. $CRLF;
// $headers .= "From: \"".addslashes($to_name) ."\" <".$from_email.">". $CRLF;
$headers .= 'Reply-To: <'. $from_email .'>'. $CRLF;
// $headers .= "Reply-To: \"".addslashes($to_name) ."\" <".$from_email.">". $CRLF;
// $headers .= "Return-Path: <$from_email>". $CRLF; // Return path for errors
// $headers .= "Return-Receipt-To: <$from_email>". $CRLF; // Return path for errors
$headers .= sprintf("Message-ID: <%s@%s>%s", $uniq_id, server_hostname(), $CRLF);
// $headers .= "X-Sender: <$from_email>". $CRLF;
$headers .= 'X-Priority: 3'. $CRLF; // 1-Urgent message! 2-very 3-normal
$headers .= 'X-MSMail-Priority: Normal'. $CRLF;
$headers .= 'X-MimeOLE: Produced By vCard Lite'. $CRLF;
$headers .= 'X-Mailer: PHP/ '.phpversion(). $CRLF; // mailer
$headers .= 'X-SenderIP: '. $client['ip'] . $CRLF;
return $headers;
}