Fix #1905 : No email sent to second email address in Notifications plugin

This commit is contained in:
Calum Lind 2011-11-26 14:49:18 +00:00
parent 2a3d8ae156
commit a779a4a7ea
1 changed files with 3 additions and 2 deletions

View File

@ -114,7 +114,8 @@ class CoreNotifications(CustomNotifications):
def _notify_email(self, subject='', message=''): def _notify_email(self, subject='', message=''):
log.debug("Email prepared") log.debug("Email prepared")
to_addrs = '; '.join(self.config['smtp_recipients']) to_addrs = self.config['smtp_recipients']
to_addrs_str = ', '.join(self.config['smtp_recipients'])
headers = """\ headers = """\
From: %(smtp_from)s From: %(smtp_from)s
To: %(smtp_recipients)s To: %(smtp_recipients)s
@ -124,7 +125,7 @@ Date: %(date)s
""" % {'smtp_from': self.config['smtp_from'], """ % {'smtp_from': self.config['smtp_from'],
'subject': subject, 'subject': subject,
'smtp_recipients': to_addrs, 'smtp_recipients': to_addrs_str
'date': formatdate() 'date': formatdate()
} }