[statistiques] changement facile de l'adresse d'envoi
darcs-hash:20091228165527-61eff-c229ad3afeed61fcc03d5b163d5fb83be823d244.gz
This commit is contained in:
parent
4e01288546
commit
f53a4406f7
1 changed files with 3 additions and 2 deletions
|
@ -14,7 +14,7 @@ Licence : GPLv2
|
|||
###########################
|
||||
|
||||
import commands
|
||||
import sys
|
||||
import sys, os
|
||||
from pyPgSQL import PgSQL
|
||||
sys.path.append('/usr/scripts/gestion')
|
||||
sys.path.append('/usr/scripts/surveillance')
|
||||
|
@ -347,4 +347,5 @@ corps = message % { 'From': expediteur,
|
|||
}
|
||||
|
||||
mail = smtplib.SMTP('localhost')
|
||||
mail.sendmail('disconnect@crans.org','disconnect@crans.org',corps)
|
||||
mailaddr = os.getenv('CRANS_EMAIL', 'disconnect@crans.org')
|
||||
mail.sendmail(mailaddr, mailaddr, corps)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue