diff options
author | Jefferson Stachelski <jstachel@thoughtworks.com> | 2015-11-17 11:30:55 -0200 |
---|---|---|
committer | Jefferson Stachelski <jstachel@thoughtworks.com> | 2015-11-17 11:33:50 -0200 |
commit | c88514fdf18f39fb67101e3ea9741b3430f221b6 (patch) | |
tree | 477291889c4a4524ad71fab80705b341c6e2d37d /service/pixelated/adapter/services | |
parent | 83c409e197da1784f9c3f8999a622a62003f85c6 (diff) |
Issue #495 Giovane/Jeff: Fixed from undefined
Sent mail doesn't have a from field, so now we are adding it
Diffstat (limited to 'service/pixelated/adapter/services')
-rw-r--r-- | service/pixelated/adapter/services/mail_service.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/service/pixelated/adapter/services/mail_service.py b/service/pixelated/adapter/services/mail_service.py index 5485ae18..bbaad2c5 100644 --- a/service/pixelated/adapter/services/mail_service.py +++ b/service/pixelated/adapter/services/mail_service.py @@ -88,6 +88,7 @@ class MailService(object): @defer.inlineCallbacks def send_mail(self, content_dict): mail = InputMail.from_dict(content_dict) + mail.headers['From'] = self.account_email draft_id = content_dict.get('ident') yield self.mail_sender.sendmail(mail) |