[Tickets #10930] Re: Cannot send emails anymore, headers show up after message body again

bugs at horde.org bugs at horde.org
Wed Jan 18 19:58:31 UTC 2012


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/10930
------------------------------------------------------------------------------
  Ticket             | 10930
  Updated By         | Michael Slusarz <slusarz at horde.org>
  Summary            | Cannot send emails anymore, headers show up after
                     | message body again
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Bug
  State              | Assigned
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             | Michael Slusarz
------------------------------------------------------------------------------


Michael Slusarz <slusarz at horde.org> (2012-01-18 12:58) wrote:

Horde_Mail isn't broken.  Verified with unit tests - the entire  
message is correctly sent with the proper linebreaks in all parts of  
the message.

The fix from Ticket #10696 was wrong.  There is no expectation that we  
should be sending canonical CRLF linebreaks to the sendmail binary -  
since this is a SMTP convention.  Sendmail != SMTP.

Instead, we are piping output to a local program.  As such, we should  
be separating lines with the OS line separator (PHP_EOL).

Thus, there is no way to be automatically compatible with all sendmail  
binaries.  The current behavior is the more correct of the two (see  
below) so that is what we will use going forward.

See, e.g.:
http://www.php.net/manual/en/function.mail.php
https://bugs.php.net/bug.php?id=15841

I guess we should allow configuration of the separator to workaround  
this.  But the more correct solution is to use SMTP.





More information about the bugs mailing list