Sending emails to actual users

This commit is contained in:
Fergal Moran
2014-01-25 23:56:06 +00:00
parent d91d33dee1
commit ba29ca715f

View File

@@ -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!',