Merge pull request #2271 from redapple/mailsender-lists

[MRG+1] Add note on "to" and "cc" as lists for sending emails
This commit is contained in:
Paul Tremberth 2016-09-22 12:00:14 +02:00 committed by GitHub
commit 2e08a9b412
1 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,12 @@ And here is how to use it to send an e-mail (without attachments)::
mailer.send(to=["someone@example.com"], subject="Some subject", body="Some body", cc=["another@example.com"])
.. note::
As shown in the example above, ``to`` and ``cc`` need to be lists
of email addresses, not single addresses, and even for one recipient,
i.e. ``to="someone@example.com"`` will not work.
MailSender class reference
==========================