Fixed sending out email when no-reply is not set.
authorLennard de Rijk <ljvderijk@gmail.com>
Sat, 28 Feb 2009 10:39:23 +0000
changeset 1551 78c6c14c6b63
parent 1550 a872030dc3ca
child 1552 765e31c1669c
Fixed sending out email when no-reply is not set. (Puts a brown paper bag on his head and runs!) Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/logic/mail_dispatcher.py
--- a/app/soc/logic/mail_dispatcher.py	Sat Feb 28 10:25:41 2009 +0000
+++ b/app/soc/logic/mail_dispatcher.py	Sat Feb 28 10:39:23 2009 +0000
@@ -148,6 +148,6 @@
     return None
 
   # denormalize the account and retrieve the email
-  sender = accounts.denormalizeAccount(account_entity).email()
+  sender = accounts.denormalizeAccount(user_entity.account).email()
 
   return (user_entity.name, sender)