Rev 16484 | Rev 16581 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
16479 | guerimand | 1 | |
2 | cnt_user=!itemcnt $sending_mail |
||
16482 | guerimand | 3 | !reset username teachername login teachername |
16479 | guerimand | 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\ |
||
16512 | guerimand | 10 | [WIMS $wims_classname] $save_subject\ |
11 | $save_msg\ |
||
16479 | guerimand | 12 | |
13 | !reset u |
||
14 | !next l_ |
||
15 | |||
16 | |||
16482 | guerimand | 17 | !! --------- preparing msg for teacher and supervisor |
16479 | guerimand | 18 | nbuser=!recordcnt wimshome/log/classes/$wims_class/.userlist |
19 | !if $nbuser>$cnt |
||
16512 | guerimand | 20 | msgmod=$save_msg\ |
16482 | guerimand | 21 | <br/>\ |
22 | #######<br/>\ |
||
23 | Send to user : $username<br/>\ |
||
24 | #######<br/>\ |
||
25 | <br/> |
||
16479 | guerimand | 26 | |
27 | !else |
||
16512 | guerimand | 28 | msgmod=$save_msg |
16479 | guerimand | 29 | !endif |
16482 | guerimand | 30 | |
31 | !if $save_sendotherteacher=1 |
||
32 | !! ----------- send copie msg to teacher of the class |
||
33 | cnt_teacher=!recordcnt wimshome/sessions/$wims_session/.userteacher_mail |
||
34 | !for l_ =1 to $cnt_teacher |
||
35 | u=!record $l_ of wimshome/sessions/$wims_session/.userteacher_mail |
||
36 | login=!append item $(u[3]) to $login |
||
37 | teachername=!append item $(u[1]) $(u[2]) to $teachername |
||
38 | !mailto $(u[4])\ |
||
16479 | guerimand | 39 | $supervisormail\ |
16512 | guerimand | 40 | [WIMS $wims_classname] $save_subject\ |
16479 | guerimand | 41 | $msgmod\ |
42 | |||
16482 | guerimand | 43 | !reset u |
44 | !next l_ |
||
45 | !endif |
||
16479 | guerimand | 46 | |
16482 | guerimand | 47 | !if $save_selfsend=1 |
48 | !! ----------- send copie msg to supervisor of the class |
||
49 | !if $cnt_teacher>0 and $save_sendotherteacher=1 |
||
16512 | guerimand | 50 | msgmod=$save_msg\ |
16482 | guerimand | 51 | <br/><br/>\ |
52 | #######<br/>\ |
||
53 | Send to teacher : $teachername<br/>\ |
||
54 | #######<br/> |
||
16479 | guerimand | 55 | |
16482 | guerimand | 56 | !endif |
57 | login=!append item supervisor to $login |
||
58 | !mailto $supervisormail\ |
||
59 | $supervisormail\ |
||
16512 | guerimand | 60 | [WIMS $wims_classname] $save_subject\ |
16482 | guerimand | 61 | $msgmod\ |
62 | |||
63 | !endif |
||
64 | |||
16512 | guerimand | 65 | !set wims_module_log=class $class: sendmail |
16479 | guerimand | 66 | date=!translate : to . in $wims_now |
67 | !appendfile wimshome/log/classes/$wims_class/.log $date $httpd_REMOTE_ADDR $supervisormail send mail to $login |
||
68 | |||
16512 | guerimand | 69 | !reset sending_mail method select_user loginlist |