Skip to content

Commit

Permalink
Use RFC-compliant header separation, fixes #23 (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterthomassen authored Nov 1, 2023
1 parent 8cfaa01 commit 99f9333
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Mail/mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,6 @@ public function __construct($params = null)
} else {
$this->_params = $params;
}

/* Because the mail() function may pass headers as command
* line arguments, we can't guarantee the use of the standard
* "\r\n" separator. Instead, we use the system's native line
* separator. */
if (defined('PHP_EOL')) {
$this->sep = PHP_EOL;
} else {
$this->sep = (strpos(PHP_OS, 'WIN') === false) ? "\n" : "\r\n";
}
}

/**
Expand Down

0 comments on commit 99f9333

Please sign in to comment.