Commit b98ff1f8 authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue

[generate/adherents] On arrête l'envoi de mails de bienvenue, car ça spamme.

parent cc4aab72
...@@ -191,12 +191,12 @@ class mail_bienvenue: ...@@ -191,12 +191,12 @@ class mail_bienvenue:
print ERREUR print ERREUR
continue continue
conn=smtplib.SMTP('localhost') conn=smtplib.SMTP('localhost')
conn.sendmail(From, To, mail_module.generate('bienvenue', { 'From': From, 'To': To, 'lang_info': 'English version below' }).as_string()) #conn.sendmail(From, To, mail_module.generate('bienvenue', { 'From': From, 'To': To, 'lang_info': 'English version below' }).as_string())
conn.quit() conn.quit()
print OK print OK
except Exception, c: except Exception, c:
print ERREUR print ERREUR
if self.debug: if True: #self.debug:
import traceback import traceback
traceback.print_exc() traceback.print_exc()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment