Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
16479 | guerimand | 1 | |
2 | cnt_user=!itemcnt $sending_mail |
||
3 | !reset username teachername login |
||
4 | !for l_ =1 to $cnt_user |
||
5 | u=!record $l_ of wimshome/sessions/$wims_session/.userlist_mail |
||
6 | username=!append item $(u[1]) $(u[2]) to $username |
||
7 | login=!append item $(u[3]) to $login |
||
8 | !mailto $(u[4])\ |
||
9 | $supervisormail\ |
||
10 | [WIMS $wims_classname] $subject\ |
||
11 | $msg\ |
||
12 | |||
13 | !reset u |
||
14 | !next l_ |
||
15 | |||
16 | |||
17 | !! ----------- send copie msg to teacher of the class |
||
18 | nbuser=!recordcnt wimshome/log/classes/$wims_class/.userlist |
||
19 | !if $nbuser>$cnt |
||
20 | !set msgmod=$msg\ |
||
21 | \ |
||
22 | #######\ |
||
23 | Send : $username\ |
||
24 | #######\ |
||
25 | |||
26 | !else |
||
27 | !set msgmod=$msg |
||
28 | !endif |
||
29 | cnt_teacher=!linecnt $list_teacher |
||
30 | !for l_ =1 to $cnt_teacher |
||
31 | u=!record $l_ of wimshome/sessions/$wims_session/.userteacher_mail |
||
32 | login=!append item $(u[3]) to $login |
||
33 | !mailto $(u[4])\ |
||
34 | $supervisormail\ |
||
35 | [WIMS $wims_classname] $subject\ |
||
36 | $msgmod\ |
||
37 | |||
38 | !reset u |
||
39 | !next l_ |
||
40 | |||
41 | |||
42 | set wims_module_log=class $class: sendmail |
||
43 | date=!translate : to . in $wims_now |
||
44 | !appendfile wimshome/log/classes/$wims_class/.log $date $httpd_REMOTE_ADDR $supervisormail send mail to $login |
||
45 | |||
46 | !reset sending_mail method select_user loginlist |