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 0f962aeda5
commit 3d813ea1f8
1 changed files with 3 additions and 2 deletions

View File

@ -111,7 +111,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
@ -120,7 +121,7 @@ Subject: %(subject)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}
message = '\r\n'.join((headers + message).splitlines()) message = '\r\n'.join((headers + message).splitlines())