From ba29ca715f83badd9ece2a2e81fd0d7127999377 Mon Sep 17 00:00:00 2001 From: Fergal Moran Date: Sat, 25 Jan 2014 23:56:06 +0000 Subject: [PATCH] Sending emails to actual users --- spa/models/notification.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/models/notification.py b/spa/models/notification.py index 8eb2841..41a50ba 100644 --- a/spa/models/notification.py +++ b/spa/models/notification.py @@ -62,8 +62,8 @@ class Notification(_BaseModel): 'headers': {'Reply-To': 'chatbot@deepsouthsounds.com'}, 'metadata': {'website': 'www.deepsouthsounds.com'}, 'subject': self.notification_text, - 'to': [{'email': 'fergal.moran@gmail.com', - 'name': 'Fergal Moran', + 'to': [{'email': self.to_user.email, + 'name': self.to_user.get_nice_name(), 'type': 'to'}], 'html': rendered, 'text': 'Get yourself some HTML man!',