Opened 36 minutes ago

Last modified 21 minutes ago

#37141 new Cleanup/optimization

sendtestemail needs a way to specify the MAILERS configuration

Reported by: Mike Edmunds Owned by:
Component: Core (Management commands) Version: 6.1
Severity: Normal Keywords: mail, email
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description (last modified by Mike Edmunds)

The sendtestemail management command always uses the default MAILERS configuration. There's currently no way to test other configurations with it.

We should add an optional --using ALIAS argument to sendtestemail to specify the MAILERS configuration:

./manage.py sendtestemail --using notifications to@example.com
./manage.py sendtestemail --managers --using internal

If --using is not provided, sendtestemail would use the default MAILERS configuration.

[This was recommended as early follow-on work in DEP 0018. I'm opening it as "Cleanup" because it feels like a missing piece of #35514 rather than a new feature. Or we may want to treat it as a "Bug" so it gets backported to 6.1 (if it makes it in before beta).]

Change History (1)

comment:1 by Mike Edmunds, 21 minutes ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top