Reply from @aaronweb.net, not @pics.hashru.nl, for now.

This commit is contained in:
Aaron van Geffen 2016-09-29 23:00:58 +02:00
parent 2a7b44dfb2
commit b66088319b
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class Email
$boundary = uniqid('sr');
if (empty($headers))
$headers .= "From: HashRU Pics <no-reply@pics.hashru.nl>\r\n";
$headers .= "From: HashRU Pics <no-reply@aaronweb.net>\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")