Commit 96ff5583 authored by Loui Chang's avatar Loui Chang
Browse files

Tweak comment notify mail.

Signed-off-by: default avatarLoui Chang <>
parent 22f19eeb
......@@ -89,13 +89,15 @@ if ($_REQUEST["add_Comment"]) {
#TODO: native language emails for users, based on their prefs
# Simply making these strings translatable won't work, users would be
# getting emails in the language that the user who posted the comment was in
$body = "\nAuthor: " . username_from_sid($_COOKIE["AURSID"])
. "\nFrom"
. $_REQUEST["ID"]."\n\n" . $_POST['comment']
$body =
. $_REQUEST["ID"] . "\n"
. username_from_sid($_COOKIE["AURSID"]) . " wrote:\n\n"
. $_POST['comment']
. "\n\n---\nIf you no longer wish to receive notifications about this package, please go the the above package page and click the UnNotify button.";
$body = wordwrap($body, 70);
$bcc = implode(', ', $bcc);
$headers = "Bcc: $bcc\nReply-to:\\nX-Mailer: AUR\n";
$headers = "Bcc: $bcc\nReply-to:\nFrom:\nX-Mailer: AUR\n";
@mail(' ', "AUR Comment for ".$row['Name'], $body, $headers);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment