Ignore:
Timestamp:
10 Apr 2014, 14:04:32 (11 years ago)
Author:
uli
Message:

Also tell correct from-address when talking to mail servers.

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

Legend:

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

    r11585 r11586  
    199199        rcpt_addrs += [from_addr]
    200200        pass
    201     result = mailer().send(from_addr, rcpt_addrs, body.as_string())
     201    result = mailer().send(FROM_ADDRESS, rcpt_addrs, body.as_string())
    202202    return result
  • main/waeup.kofa/trunk/src/waeup/kofa/tests/test_smtp.py

    r11585 r11586  
    236236        self.assertEqual(
    237237            self.get_fake_smtp_output().split('\n'),
    238             [u'Sending email from sender@example.com to '
     238            [u'Sending email from no-reply@waeup.org to '
    239239             u'recpt@example.com, sender@example.com:',
    240240             u'Message:',
     
    263263        self.assertEqual(
    264264            self.get_fake_smtp_output().split('\n'),
    265             [u'Sending email from sender@example.com '
     265            [u'Sending email from no-reply@waeup.org '
    266266             u'to recpt@example.com, sender@example.com:',
    267267             u'Message:', u'msg: MIME-Version: 1.0',
     
    289289        self.assertEqual(
    290290            self.get_fake_smtp_output().split('\n'),
    291             [u'Sending email from sender@example.com '
     291            [u'Sending email from no-reply@waeup.org '
    292292             u'to recpt@example.com, sender@example.com:',
    293293             u'Message:', u'msg: MIME-Version: 1.0',
Note: See TracChangeset for help on using the changeset viewer.