repoze / repoze.sendmail

Send e-mails transactionally (originally cloned from zope.sendmail)
http://pypi.python.org/pypi/repoze.sendmail/
11 stars 25 forks source link

Is To: an Array or List? #45

Open PythonLinks opened 4 years ago

PythonLinks commented 4 years ago

Message To: has to be a string. message['To'] = 'Paul paul@example.com, Tres tres@example.com'

But delivery.send delivery.send('chris@example.com', ['paul@example.com', 'tres@example.com'], message) Has to be an array.

It took a few hours to figure that out
It would be good if the software actually tested to make sure that one is a string, and the other an array.

mmerickel commented 4 years ago

I would accept a PR that ensured that the toaddrs arg was a non-string iterable or some improved documentation.