Reference MailSender in StatsMailer

Added a reference to MailSender in the StatsMailer extension description and included a link to the document detailing how to instantiate MailSender and using Scrapy settings objects.
This commit is contained in:
Aaron Tan 2021-07-24 14:50:48 +10:00 committed by GitHub
parent ff272d6332
commit 209c1fce02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -323,6 +323,15 @@ domain has finished scraping, including the Scrapy stats collected. The email
will be sent to all recipients specified in the :setting:`STATSMAILER_RCPTS`
setting.
Emails can be sent using the MailSender class
.. module:: scrapy.mail
:synopsis: MailSender class
.. class:: MailSender(smtphost=None, mailfrom=None, smtpuser=None, smtppass=None, smtpport=None)
To see a full list of parameters, including examples on how to instantiate MailSender and using mail settings, see :ref:`topics-email`
.. module:: scrapy.extensions.debug
:synopsis: Extensions for debugging Scrapy