Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
p01-contact : simply add contact forms in your pages
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.
Reply


Messages In This Thread
RE: p01-contact : simply add contact forms in your pages - by Lars - 2014-02-13, 00:30:49
askcopy syntax Not Working - by celextel - 2019-05-24, 01:54:40
RE: askcopy syntax Not Working - by celextel - 2019-05-28, 01:51:47



Users browsing this thread: 6 Guest(s)