mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #24970 -- Added --managers and --admins options to the sendtestemail management command.
This commit is contained in:
@@ -902,6 +902,18 @@ recipient(s) specified. For example::
|
||||
|
||||
django-admin sendtestemail foo@example.com bar@example.com
|
||||
|
||||
.. django-admin-option:: --managers
|
||||
|
||||
Use the ``--managers`` option to mail the email addresses specified in
|
||||
:setting:`MANAGERS` using :meth:`~django.core.mail.mail_managers()`.
|
||||
|
||||
.. django-admin-option:: --admins
|
||||
|
||||
Use the ``--admins`` option to mail the email addresses specified in
|
||||
:setting:`ADMINS` using :meth:`~django.core.mail.mail_admins()`.
|
||||
|
||||
Note that you may use any combination of these options together.
|
||||
|
||||
shell
|
||||
-----
|
||||
|
||||
|
||||
Reference in New Issue
Block a user