<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Ah, okay, I stand corrected.<br>
    <br>
    Many thanks for the info, I will tweak the code and issue an updated
    build tomorrow with the \r\n sequences replaced with \n.<br>
    <br>
    Then you won't need to patch your code any more. :-)<br>
    <br>
    Cheers,<br>
    Jules.<br>
    <br>
    On 27/09/2011 18:31, Tony Fairbanks wrote:
    <blockquote cite="mid:4E820882.1060602@tonyfairbanks.com"
      type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      Hi Jules,<br>
      <br>
      There's a bug report here <a moz-do-not-send="true"
        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 moz-do-not-send="true"
        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:
&gt;<i> Hi,
</i>&gt;<i> I noticed that ZendTo is inserting double newlines after some email
</i>&gt;<i> header fields, making portions of the header info show up in the message
</i>&gt;<i> body. This causes problems, such as making "reply-to" not work.
</i>&gt;<i>
</i>&gt;<i> The following chunk of code in lib/NSSDropbox.php originally had \r\n
</i>&gt;<i> for the newline marker. By changing it to just \n the double newlines
</i>&gt;<i> are removed.
</i>&gt;<i>
</i>&gt;<i>    // Add the From: and Reply-To: headers if they have been supplied.
</i>&gt;<i>       if ($fromAddr!="") {
</i>&gt;<i>         $headers = sprintf("From: %s\nReply-to: %s\n", $sender, $fromAddr).
</i>&gt;<i>                    $headers;
</i>&gt;<i>       }
</i>&gt;<i>
</i>&gt;<i>       // Add the MIME headrs for 8-bit UTF-8 encoding
</i>&gt;<i>       $headers .= "MIME-Version: 1.0\n";
</i>&gt;<i>       $headers .= "Content-Type: text/plain; charset=UTF-8; format=flowed\n";
</i>&gt;<i>       $headers .= "Content-Transfer-Encoding: 8bit\n";
</i>&gt;<i>
</i>&gt;<i>
</i>&gt;<i> This is with a fresh install of Scientific Linux 6.1 (RHEL clone) using
</i>&gt;<i> Postfix, with ZendTo installed via the yum repository.
</i>&gt;<i>
</i>&gt;<i> Thanks,
</i>&gt;<i> Tony
</i>&gt;<i>
</i>&gt;<i>
</i>&gt;<i> _______________________________________________
</i>&gt;<i> ZendTo mailing list
</i>&gt;<i> <a moz-do-not-send="true" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">ZendTo at zend.to</a>
</i>&gt;<i> <a moz-do-not-send="true" 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 moz-do-not-send="true" 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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">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

'Teach a man to reason, and he will think for a lifetime.' - Phil Plait
'All programs have a desire to be useful' - Tron, 1982
</pre>
  </body>
</html>