mail: dernier rappel reinscription
This commit is contained in:
parent
9e8f697a23
commit
76c8c2d9f2
4 changed files with 18 additions and 16 deletions
|
@ -17,7 +17,7 @@ SEND=False
|
|||
# campus (les autres ont potentiellement répondu à chambres_invalides, donc
|
||||
# on ne va pas les respammer). On considère aussi les membres actifs,
|
||||
# invariablement.
|
||||
ldap_filter=u'(&(|(droits=*)(&(!(chbre=????))(chbre=*)(!(chbre=EXT))))(paiement=2013)(aid=*))'
|
||||
ldap_filter=u'(&(|(droits=*)(&(chbre=*)(!(chbre=????))(!(chbre=EXT))))(paiement=2013)(aid=*)(!(finConnexion=*)))'
|
||||
|
||||
|
||||
conn=lc_ldap.shortcuts.lc_ldap_readonly()
|
||||
|
@ -29,11 +29,14 @@ for adh in conn.search(ldap_filter):
|
|||
addr = adh.get_mail()
|
||||
if addr:
|
||||
mailaddrs.add(addr)
|
||||
else:
|
||||
print "skip %s" % adh.dn
|
||||
|
||||
print "Va envoyer le message à %s personnes." % len(mailaddrs)
|
||||
if not SEND:
|
||||
print "(Simulation only) Mettre la variable SEND à True effectuer l'envoi"
|
||||
print "(Simulation only.) Mettre la variable SEND à True effectuer l'envoi"
|
||||
print "Appuyer sur une touche pour continuer."
|
||||
raw_input()
|
||||
|
||||
echecs=[]
|
||||
conn_smtp=smtplib.SMTP('smtp.adm.crans.org')
|
||||
|
|
|
@ -1 +1 @@
|
|||
Réadhésion au Crans
|
||||
Réadhésion au Crans (plus que quelques jours)
|
||||
|
|
|
@ -7,8 +7,8 @@ suspended.
|
|||
|
||||
In order to do so, you can meet us during one of our office hours at the Kfet.
|
||||
Just to remind you: they take place from Monday to Friday, from 12:30pm to
|
||||
1:30pm and from 6:30pm to 8:30pm, *except on Tuesday night*. Please come during
|
||||
those office hours, or else nobody will be able to help for your
|
||||
1:30pm and from 6:30pm to 8:30pm, *except on Tuesday evening*. Please come
|
||||
during those office hours, or else nobody will be able to help for your
|
||||
resubscription.
|
||||
|
||||
To resuscribe, you need to fill the subscription form you can find at the Kfet.
|
||||
|
|
|
@ -22,5 +22,4 @@ de données.
|
|||
À très bientôt !
|
||||
|
||||
--
|
||||
|
||||
Les câbleurs du Cr@ns
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue