[cpif] r413 - trunk/backend

svn at argo.es svn at argo.es
Sat Oct 20 00:17:07 CEST 2007


Author: jcea
Date: Sat Oct 20 00:17:06 2007
New Revision: 413

Log:
No intentes enviar correo si no tenemos
configurado el servidor de correo o el remitente.



Modified:
   trunk/backend/smtp.py

Modified: trunk/backend/smtp.py
==============================================================================
--- trunk/backend/smtp.py	(original)
+++ trunk/backend/smtp.py	Sat Oct 20 00:17:06 2007
@@ -62,7 +62,8 @@
   import time
   while True :
     try :
-      process_queue()
+      if smtp_server and smtp_server_port and smtp_email_sender :
+        process_queue()
     except :
       import sys,traceback
       print >>sys.stderr,"EXCEPCION:",time.ctime()



More information about the cpif mailing list