From: martin Date: Tue, 28 May 2002 13:59:45 +0000 (+0000) Subject: Changed email_to_users to be a lot more straightforward. I don't think X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=59c16528cd5671b0833c53127e26a35531775a94;p=moodle.git 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. --- 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