sendtestemail needs a way to specify the MAILERS configuration
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
(14)
| Description: |
modified (diff)
|
| Easy pickings: |
unset
|
| Triage Stage: |
Unreviewed → Accepted
|
| Owner: |
set to Kona Naga Kartheek Reddy
|
| Status: |
new → assigned
|
| Patch needs improvement: |
set
|
| Patch needs improvement: |
unset
|
| Triage Stage: |
Accepted → Ready for checkin
|
| Patch needs improvement: |
set
|
| Triage Stage: |
Ready for checkin → Accepted
|
| Patch needs improvement: |
unset
|
| Triage Stage: |
Accepted → Ready for checkin
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
Makes total sense, thank you Mike! I agree we should backport to 6.1. Happy to assist with reviews to make it to the beta deadline (June 24th). I'll remove easy picking to avoid LLM-derived rushed PRs. Also if you were planning on working on this, please assign yourself asap.