From e59d79bf37a8ecbef6679145815b000008bb6624 Mon Sep 17 00:00:00 2001 From: Paul Tremberth Date: Tue, 20 Sep 2016 17:17:22 +0200 Subject: [PATCH] Add note on "to" and "cc" as lists for sending emails Fixes GH-2244 --- docs/topics/email.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/topics/email.rst b/docs/topics/email.rst index 62ebc4c08..18d2f8084 100644 --- a/docs/topics/email.rst +++ b/docs/topics/email.rst @@ -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 ==========================