Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is To: an Array or List? #45

Open
PythonLinks opened this issue Feb 2, 2020 · 1 comment
Open

Is To: an Array or List? #45

PythonLinks opened this issue Feb 2, 2020 · 1 comment

Comments

@PythonLinks
Copy link

Message To: has to be a string.
message['To'] = 'Paul [email protected], Tres [email protected]'

But delivery.send
delivery.send('[email protected]', ['[email protected]', '[email protected]'],
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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants