#37141: sendtestemail needs a way to specify the MAILERS configuration
-------------------------------------+-------------------------------------
Reporter: Mike Edmunds | Owner: (none)
Type: | Status: new
Cleanup/optimization |
Component: Core (Management | Version: 6.1
commands) |
Severity: Normal | Resolution:
Keywords: mail, email | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Mike Edmunds:
Old description:
> The [https://docs.djangoproject.com/en/stable/ref/django-
> admin/#sendtestemail 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:
>
> {{{#!shell
> ./manage.py sendtestemail --using notifications [email protected]
> ./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
> [https://github.com/medmunds/deps/blob/a8c63074293e34cbf71fc185fccfae7cdf2a0b15/accepted/0018-mailers.md
> #future-sendtestemail-using-option 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).]
New description:
The [https://docs.djangoproject.com/en/stable/ref/django-
admin/#sendtestemail 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:
{{{#!shell
./manage.py sendtestemail --using notifications [email protected]
./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
[https://github.com/django/deps/blob/main/accepted/0018-mailers.md#future-
sendtestemail-using-option 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).]
--
--
Ticket URL: <https://code.djangoproject.com/ticket/37141#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019e8e8b3724-de67d193-d211-4991-9db7-fc09e6ba75e3-000000%40eu-central-1.amazonses.com.