]> git.mjollnir.org Git - moodle.git/commitdiff
Changed email_to_users to be a lot more straightforward. I don't think
authormartin <martin>
Tue, 28 May 2002 13:59:45 +0000 (13:59 +0000)
committermartin <martin>
Tue, 28 May 2002 13:59:45 +0000 (13:59 +0000)
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

index 23d85d8af81c63cf86a8ff710dd70b0c04907bd6..3fcf058bbe6cc91cd266bb433fbb6077eefa1c1d 100644 (file)
@@ -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