From 59c16528cd5671b0833c53127e26a35531775a94 Mon Sep 17 00:00:00 2001 From: martin Date: Tue, 28 May 2002 13:59:45 +0000 Subject: [PATCH] Changed email_to_users to be a lot more straightforward. I don't think there's really need for all the BCC hocus-pocus. Everyone can find everyone's address anyway, the email bloat is minimal, and perhaps distributing email addresses will spark private emails. --- lib/moodlelib.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 23d85d8af8..3fcf058bbe 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -887,14 +887,9 @@ function email_to_users(&$users, $from, $subject, $messagetext, $messagehtml="", $mail->From = "$from->email"; $mail->FromName = "$from->firstname $from->lastname"; $mail->Subject = stripslashes($subject); - $mail->AddReplyTo("$from->email","$from->firstname $from->lastname"); - - $mail->AddAddress("$from->email","$from->firstname $from->lastname"); foreach ($users as $user) { - if ($user->email <> $from->email) { - $mail->AddBCC("$user->email","$user->firstname $user->lastname"); - } + $mail->AddAddress("$user->email","$user->firstname $user->lastname"); } $mail->WordWrap = 70; // set word wrap -- 2.39.5