Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fixed a bug where mail messages were malformed when using the Sendmail #3757

Closed
wants to merge 2 commits into from
Closed

Commits on Feb 12, 2013

  1. Fixed a bug where mail messages were malformed when using the Sendmail

    transport on Unix systems with certain versions of sendmail (e.g.
    Postfix < 2.9). Specifically, message headers spilled into the body
    and the body text was double-spaced.
    
    The source of the problem was the use of CRLF as the EOL sequence
    when sending messages via PHP's built-in mail() function on Unix
    systems. Despite what the PHP manual says, LF should be used as the
    sole EOL character on Unix. This is because mail() is a wrapper for
    sendmail on Unix and does not speak SMTP except on Windows.
    stewartlord committed Feb 12, 2013
    Configuration menu
    Copy the full SHA
    e3af7c5 View commit details
    Browse the repository at this point in the history
  2. Cast a wider net for EOL translation. The to and subject headers were

    being independantly wrapped. Now we convert line-endings on $to, $subject,
    $body and $headers immediately before calling mail().
    stewartlord committed Feb 12, 2013
    Configuration menu
    Copy the full SHA
    6dc2cc5 View commit details
    Browse the repository at this point in the history