Pylons/pyramid — Issue #333: pyramid_mailer does not send to cc addresses
Author: dckc
Created: 2011-11-01 20:10:21+00:00
State: open

In trying to debug my usage of pyramid_mailer, I discovered that the cc addresses
weren't included in the recipients used to send a message.

The following test case captures what I was expecting and what I got instead:

>>> dm = pyramid_mailer.mailer.DummyMailer()
>>> m = Message(recipients=['r1@example', 'r2@example'],
... cc=['c1@example'])
>>> dm.send_immediately(m)
>>> dm.outbox[0].recipients
['r1@example', 'r2@example', 'c1@example']

Failed example:
dm.outbox[0].recipients
Expected:
['r1@example', 'r2@example', 'c1@example']
Got:
['r1@example', 'r2@example']

I initially encountered the problem with 0.5, i.e.
# pyramid_mailer-0.5.tar.gz#md5=115ed5a721e9f881e59529b901568aa4
but I re-tried with 0.4.1 and saw the same symptoms.