<style></style>
Hi, I'm from Germany and my English isn't the best one. Today I installed
Mercury on my Computer. I also prepared a form in HTML which I wanted to send
with PHP and mercury. But while sending in Mercury, I got an error. I found out,
that it has to do with the "From" array in the header of the PHP
mail()-Function.
It looks like that:
$from = '"My Name" <my@email.com>';
$headers .=
"MIME-Version: 1.0\n";
$headers .= "Content-type: text/html;
charset=iso-8859-1\n";
$headers .= "From: $from\n";
$headers
.= "Reply-To: ".$from."\n";
$headers .= "X-Mailer: PHP/" .
phpversion(). "\n";
$headers .= "X-Sender-IP: $REMOTE_ADDR\n";
$headers .= "Content-type: text/html\n";
But in Mercury I get the following error:
15 Nov 08 18:30, Servicing job MO00000F... 555 5.5.2 Syntax error.
j2sm5603868mue.4
and sometimes also this:
18:30:47: Job MG000026: from <********@gmx.de (non-local)
To:
*****@freenet.de (non-local) (Job MO000027) -OK
I hope you understand my horrible English and you can help me!
<style></style><p>Hi, I'm from Germany and my English isn't the best one. Today I installed
Mercury on my Computer. I also prepared a form in HTML which I wanted to send
with PHP and mercury. But while sending in Mercury, I got an error. I found out,
that it has to do with the "From" array in the header of the PHP
mail()-Function.</p>
<p>&nbsp;</p>
<p>It looks like that:</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; $from = '"My Name" &lt;my@email.com&gt;';
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $headers .=
"MIME-Version: 1.0\n";
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $headers .= "Content-type: text/html;
charset=iso-8859-1\n";
&nbsp;&nbsp;&nbsp; &nbsp; $headers .= "From: $from\n";
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $headers
.= "Reply-To: ".$from."\n";
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $headers .= "X-Mailer: PHP/" .
phpversion(). "\n";
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $headers .= "X-Sender-IP: $REMOTE_ADDR\n";
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$headers .= "Content-type: text/html\n"; </p>
<p>&nbsp;</p>
<p>But in Mercury I get the following error:</p>
<p>15 Nov 08 18:30, Servicing job MO00000F...&nbsp; 555 5.5.2 Syntax error.
j2sm5603868mue.4
</p>
<p>and sometimes also this:</p>
<p>18:30:47: Job MG000026:&nbsp; from&nbsp; &lt;********@gmx.de (non-local)
&nbsp;&nbsp; To:
*****@freenet.de (non-local) (Job MO000027) -OK</p>
<p>&nbsp;</p>
<p>I hope you understand my horrible English and you can help me!
</p>