<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Jules,<br>
<br>
There's a bug report here <a class="moz-txt-link-freetext" href="https://bugs.php.net/bug.php?id=15841">https://bugs.php.net/bug.php?id=15841</a>
about PHP's mail() function and newlines. Since mail() doesn't talk
directly to an SMTP server on UNIX but to the local sendmail
program, the headers should be separated by the native line break.
There are also quite a few people posting about similar problems on
the PHP mail() page (for example
<a class="moz-txt-link-freetext" href="http://www.php.net/manual/en/function.mail.php#100563">http://www.php.net/manual/en/function.mail.php#100563</a>) and that the
native EOL marker should be used. <br>
<br>
I'm not sure why I'm the only one having this problem. The Postfix
config is completely stock with the exception of a relayhost
defined. Scientific Linux 6 is for all intents and purposes the same
thing as Centos 6 - the SL people do a rebuild of the Red Hat source
the same way the Centos people do.<br>
<br>
Other than this slight glitch, ZendTo is working out absolutely
perfect for us. <br>
<br>
<blockquote type="cite">
<pre>Email lines should have \r\n at the end of them, and other people are
using Postfix and sendmail with my code with no problems at all.
So I would suspect something about your Postfix setup. No-one has ever
reported this problem, and I have never changed the way I generate email
messages.
I don't know of anyone else who has used this particular distribution.
Jules.
On 27/09/2011 15:28, Tony Fairbanks wrote:
><i> Hi,
</i>><i> I noticed that ZendTo is inserting double newlines after some email
</i>><i> header fields, making portions of the header info show up in the message
</i>><i> body. This causes problems, such as making "reply-to" not work.
</i>><i>
</i>><i> The following chunk of code in lib/NSSDropbox.php originally had \r\n
</i>><i> for the newline marker. By changing it to just \n the double newlines
</i>><i> are removed.
</i>><i>
</i>><i> // Add the From: and Reply-To: headers if they have been supplied.
</i>><i> if ($fromAddr!="") {
</i>><i> $headers = sprintf("From: %s\nReply-to: %s\n", $sender, $fromAddr).
</i>><i> $headers;
</i>><i> }
</i>><i>
</i>><i> // Add the MIME headrs for 8-bit UTF-8 encoding
</i>><i> $headers .= "MIME-Version: 1.0\n";
</i>><i> $headers .= "Content-Type: text/plain; charset=UTF-8; format=flowed\n";
</i>><i> $headers .= "Content-Transfer-Encoding: 8bit\n";
</i>><i>
</i>><i>
</i>><i> This is with a fresh install of Scientific Linux 6.1 (RHEL clone) using
</i>><i> Postfix, with ZendTo installed via the yum repository.
</i>><i>
</i>><i> Thanks,
</i>><i> Tony
</i>><i>
</i>><i>
</i>><i> _______________________________________________
</i>><i> ZendTo mailing list
</i>><i> <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">ZendTo at zend.to</a>
</i>><i> <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a>
</i>
Jules
--
Julian Field MEng CITP CEng
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Follow me at twitter.com/JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
'It's okay to live without all the answers' - Charlie Eppes, 2011
'All programs have a desire to be useful' - Tron, 1982
'That is the land of lost content,
I see it shining plain,
The happy highways where I went,
And cannot come again.' - A.E. Houseman
</pre>
</blockquote>
<br>
</body>
</html>