goa/appobjects/components.py
changeset 5556 9ab2b4c74baf
parent 5424 8ecbcbff9777
child 6041 31776723c0c5
--- a/goa/appobjects/components.py	Thu May 20 20:47:13 2010 +0200
+++ b/goa/appobjects/components.py	Thu May 20 20:47:55 2010 +0200
@@ -98,7 +98,7 @@
 def sendmail(self, recipient, subject, body):
     sender = '%s <%s>' % (
         self.req.user.dc_title() or self.config['sender-name'],
-        self.req.user.get_email() or self.config['sender-addr'])
+        self.req.user.cw_adapt_to('IEmailable').get_email() or self.config['sender-addr'])
     mail.send_mail(sender=sender, to=recipient,
                    subject=subject, body=body)