This commit is contained in:
Jakub Vrana 2011-01-06 09:30:19 +01:00
parent 7416164966
commit 21192be01e

View file

@ -16,7 +16,7 @@ function email_header($header) {
* @param array
* @return
*/
function send_mail($email, $subject, $message, $from = "", $files = array()) {
function send_mail($email, $subject, $message, $from = "", $files = array("error" => array())) {
$eol = (strncasecmp(PHP_OS, "win", 3) ? "\n" : "\r\n"); // PHP_EOL available since PHP 4.3.10 and 5.0.2
$message = str_replace("\n", $eol, wordwrap(str_replace("\r", "", "$message\n")));
$boundary = uniqid("boundary");