2014-02-13, 00:30:49
Hi!
Today I'have recognizied that in some cases no mail was send because of a wrong header:
------------------------
The message WAS NOT relayed to:
<info@xxxyyyxx.de.de>:
554 5.6.0 Bounce, id=320846-09 - BAD HEADER
This nondelivery report was generated by the program amavisd-new at host
xxxyyyxx.de. Our internal reference code for your message is
320846-09/yHh2lxtOzibR
INVALID HEADER
Improper use of control character (char 0D hex): From: xxxxx
<info@xxxxx.de>\r
Improper use of control character (char 0D hex): Reply-To: xxxxx
<info@xxxxx.de>\r
Improper use of control character (char 0D hex): MIME-Version: 1.0\r
Improper use of control character (char 0D hex): Content-type: text/html;
charset=UTF-8\r
Return-Path: <xxx@xxxxx.de>
From: xxxxx xxxxx.de <info@xxxx.de>\015
Message-ID: <20140212131024.9DCB21C806A6@xxxxx.de>
X-Mailer: PHP/5.3.3
Subject: xxxxx.de
-----------------
I made the following modification in "p01-contact.php"
Line 725
$headers = "From: $name <$email>\n";
$headers .= "Reply-To: $name <$email>\n";
$headers .= "Return-Path: $name <$email>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=UTF-8\n";
$headers .= "X-Mailer: PHP/" . phpversion() . "\n" ;
This works for me.
Today I'have recognizied that in some cases no mail was send because of a wrong header:
------------------------
The message WAS NOT relayed to:
<info@xxxyyyxx.de.de>:
554 5.6.0 Bounce, id=320846-09 - BAD HEADER
This nondelivery report was generated by the program amavisd-new at host
xxxyyyxx.de. Our internal reference code for your message is
320846-09/yHh2lxtOzibR
INVALID HEADER
Improper use of control character (char 0D hex): From: xxxxx
<info@xxxxx.de>\r
Improper use of control character (char 0D hex): Reply-To: xxxxx
<info@xxxxx.de>\r
Improper use of control character (char 0D hex): MIME-Version: 1.0\r
Improper use of control character (char 0D hex): Content-type: text/html;
charset=UTF-8\r
Return-Path: <xxx@xxxxx.de>
From: xxxxx xxxxx.de <info@xxxx.de>\015
Message-ID: <20140212131024.9DCB21C806A6@xxxxx.de>
X-Mailer: PHP/5.3.3
Subject: xxxxx.de
-----------------
I made the following modification in "p01-contact.php"
Line 725
$headers = "From: $name <$email>\n";
$headers .= "Reply-To: $name <$email>\n";
$headers .= "Return-Path: $name <$email>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=UTF-8\n";
$headers .= "X-Mailer: PHP/" . phpversion() . "\n" ;
This works for me.