Ignore:
Timestamp:
19 Dec 2013, 12:23:23 (11 years ago)
Author:
Henrik Bettermann
Message:

Add additional recipient.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/smtp.py

    r10854 r10855  
    164164
    165165    mailer = getUtility(IMailService)
     166    rcpt_addrs += [from_addr]
    166167    result = mailer().send(from_addr, rcpt_addrs, body.as_string())
    167168    return result
  • main/waeup.kofa/trunk/src/waeup/kofa/tests/test_smtp.py

    r10854 r10855  
    233233        self.assertEqual(
    234234            self.get_fake_smtp_output().split('\n'),
    235             [u'Sending email from sender@example.com to recpt@example.com:',
     235            [u'Sending email from sender@example.com to recpt@example.com, sender@example.com:',
    236236             u'Message:',
    237237             u'msg: MIME-Version: 1.0',
     
    258258        self.assertEqual(
    259259            self.get_fake_smtp_output().split('\n'),
    260             [u'Sending email from sender@example.com to recpt@example.com:',
     260            [u'Sending email from sender@example.com to recpt@example.com, sender@example.com:',
    261261             u'Message:', u'msg: MIME-Version: 1.0',
    262262             u'msg: Content-Type: text/plain; charset="iso-8859-1"',
     
    282282        self.assertEqual(
    283283            self.get_fake_smtp_output().split('\n'),
    284             [u'Sending email from sender@example.com to recpt@example.com:',
     284            [u'Sending email from sender@example.com to recpt@example.com, sender@example.com:',
    285285             u'Message:', u'msg: MIME-Version: 1.0',
    286286             u'msg: Content-Type: text/plain; charset="iso-8859-1"',
Note: See TracChangeset for help on using the changeset viewer.