Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Add note on "to" and "cc" as lists for sending emails

Paul Tremberthe59d79bf37a8
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=["[email protected]"], subject="Some subject", body="Some body", cc=["[email protected]"])
+.. 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="[email protected]"`` will not work.
+
+
MailSender class reference
==========================