]> git.mjollnir.org Git - moodle.git/commitdiff
In email_to_user, change AddBCC back to AddAddress ... this was a hangover
authormartin <martin>
Sun, 4 Aug 2002 02:39:54 +0000 (02:39 +0000)
committermartin <martin>
Sun, 4 Aug 2002 02:39:54 +0000 (02:39 +0000)
from the old bulk-email method, but now we just send one email at a time,
so it makes sense for the address to be visible again

lib/moodlelib.php

index 680ac6cc9f6b2361b26be4e5bdace581dfbc3f39..92477c8b3e78f3ab63b49f0d46a47ecb7e53b5de 100644 (file)
@@ -1143,7 +1143,7 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml="", $a
     $mail->FromName = "$from->firstname $from->lastname";
     $mail->Subject  =  stripslashes($subject);
 
-    $mail->AddBCC("$user->email","$user->firstname $user->lastname"); 
+    $mail->AddAddress("$user->email","$user->firstname $user->lastname"); 
 
     $mail->WordWrap = 70;                               // set word wrap