diff --git a/models/Email.php b/models/Email.php index 456b0136..1829fd76 100644 --- a/models/Email.php +++ b/models/Email.php @@ -14,7 +14,7 @@ class Email $boundary = uniqid('sr'); if (empty($headers)) - $headers .= "From: HashRU Pics \r\n"; + $headers .= "From: HashRU Pics \r\n"; // Set up headers. $headers .= "MIME-Version: 1.0\r\n"; @@ -44,7 +44,7 @@ class Email if (DEBUG) return file_put_contents(BASEDIR . '/mail_dumps.txt', "To: \"$addressee\" <$address>\r\n$headers\r\nSubject: $subject\r\n" . self::wrapLines($message), FILE_APPEND); else - return mail("\"$addressee\" <$address>", $subject, $message, $headers, '-fbounces@pics.hashru.nl'); + return mail("\"$addressee\" <$address>", $subject, $message, $headers); } public static function wrapLines($body, $maxlength = 80, $break = "\r\n")