diff --git a/surveillance/statistiques.py b/surveillance/statistiques.py index 08c760b3..e1fd71a7 100755 --- a/surveillance/statistiques.py +++ b/surveillance/statistiques.py @@ -44,7 +44,6 @@ serveurs_ips = ( pgsql = PgSQL.connect(host='/var/run/postgresql', database='filtrage', user='crans') curseur = pgsql.cursor() -mail = smtplib.SMTP('localhost') ########################### # Statistiques d'upload : # @@ -269,6 +268,7 @@ corps = message % { 'From': expediteur, 'liste_exemptes': liste_exemptes } +mail = smtplib.SMTP('localhost') mail.sendmail('disconnect@crans.org','disconnect@crans.org',corps) ###