app/soc/logic/mail_dispatcher.py
changeset 1655 ed1df29f4fd9
parent 1600 0aa3de1b2acc
child 2073 6eb9b4652c80
equal deleted inserted replaced
1654:b33f52648efe 1655:ed1df29f4fd9
   115   message.check_initialized()
   115   message.check_initialized()
   116 
   116 
   117   try:
   117   try:
   118     # send the message
   118     # send the message
   119     message.send()
   119     message.send()
   120   except Exception, e:
   120   except Exception, exception:
   121     import logging
   121     import logging
   122     logging.info(context)
   122     logging.info(context)
   123     logging.exception(e)
   123     logging.exception(exception)
   124 
   124 
   125 def getDefaultMailSender():
   125 def getDefaultMailSender():
   126   """Returns the sender that currently can be used to send emails.
   126   """Returns the sender that currently can be used to send emails.
   127   
   127   
   128   Returns:
   128   Returns: