<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chango.git/tests/mail/test_sendtestemail.py, branch devmain</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/chango.git/atom?h=devmain</id>
<link rel='self' href='http://cgit.adnoto.dev/chango.git/atom?h=devmain'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/'/>
<updated>2026-06-11T17:53:46Z</updated>
<entry>
<title>Fixed #37141 -- Added --using option to sendtestemail command.</title>
<updated>2026-06-11T17:53:46Z</updated>
<author>
<name>NagaKartheekReddy</name>
<email>kartheek.5081@gmail.com</email>
</author>
<published>2026-06-04T20:41:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=14c66825e0088b7e08fe5d108fa293bd31722c39'/>
<id>urn:sha1:14c66825e0088b7e08fe5d108fa293bd31722c39</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #35514 -- Implemented dictionary-based MAILERS.</title>
<updated>2026-05-13T21:00:56Z</updated>
<author>
<name>Mike Edmunds</name>
<email>medmunds@gmail.com</email>
</author>
<published>2026-04-01T23:59:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=0f581cd29d42d1b5ed1dafb67794c2f3ce6705c9'/>
<id>urn:sha1:0f581cd29d42d1b5ed1dafb67794c2f3ce6705c9</id>
<content type='text'>
See DEP 0018.

Added:
* MAILERS setting.
* django.core.mail.mailers dict-like EmailBackend factory.
* `using` argument to mail sending APIs.
* `sent_using` attribute to mail.outbox messages in locmem backend.
* MAILERS in startproject settings template, set to console backend.
* AdminLogHandler.using argument.
* BrokenLinkEmailsMiddleware.send_mail() method.

Updated:
* BaseEmailBackend to track the MAILERS alias used to construct it, and
  to report errors for unknown kwargs (OPTIONS).
* EmailBackend implementations to initialize from kwargs (OPTIONS) only
  when MAILERS is being used.
* smtp.EmailBackend to require `host` option and to default `port`
  option based on SSL/TLS options.
* SimpleTestCase setup to substitute the locmem backend for all defined
  MAILERS configurations.
* Django's tests that send mail to define MAILERS.

Deprecated:
* EMAIL_BACKEND and other backend-related EMAIL_* settings.
* mail.get_connection().
* The `connection`, `fail_silently`, `auth_user`, and `auth_password`
  arguments to mail functions.
* The EmailMessage.connection attribute.
* BaseEmailBackend support for `fail_silently`. Backends that support
  fail_silently (SMTP, console, file) now implement it directly.
* AdminEmailHandler.email_backend argument.

Removed undocumented features without deprecation:
* EmailMessage.get_connection() method. (send() now raises an error if a
  subclass has attempted to override it.)
* EmailMessage.send() no longer sets self.connection to the connection
  used for sending. (It still _uses_ a pre-existing self.connection.)
* AdminEmailHandler.connection() method. (Init now raises an error if a
  subclass has attempted to override it.)

Thanks to Natalia Bidart for shepherding DEP 0018 and for extensive
reviews and suggestions on the implementation.

Thanks to Jacob Rief for the initial implementation and multiple
iterations while refining the design.

Co-authored-by: Jacob Rief &lt;jacob.rief@gmail.com&gt;
</content>
</entry>
<entry>
<title>Fixed #36138 -- Changed ADMINS and MANAGERS settings to lists of strings.</title>
<updated>2025-03-21T09:17:57Z</updated>
<author>
<name>Mike Edmunds</name>
<email>medmunds@gmail.com</email>
</author>
<published>2025-02-14T18:58:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=e295033144e3085abaf9277d1bb0a6436ce73e01'/>
<id>urn:sha1:e295033144e3085abaf9277d1bb0a6436ce73e01</id>
<content type='text'>
Previously, the ADMINS and MANAGERS settings were lists of (name, address)
tuples (where the name had been unused). Deprecated use of tuples.

Updated settings value sanity checks, and changed from ValueError to
ImproperlyConfigured.
</content>
</entry>
<entry>
<title>Added test for the sendtestemail command when no recipients are given.</title>
<updated>2024-01-24T18:02:42Z</updated>
<author>
<name>Baptiste Mispelon</name>
<email>bmispelon@gmail.com</email>
</author>
<published>2024-01-24T18:02:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=a702a0773dee8ea74119a8e0edf7ecc5d0ee4a1a'/>
<id>urn:sha1:a702a0773dee8ea74119a8e0edf7ecc5d0ee4a1a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #33476 -- Reformatted code with Black.</title>
<updated>2022-02-07T19:37:05Z</updated>
<author>
<name>django-bot</name>
<email>ops@djangoproject.com</email>
</author>
<published>2022-02-03T19:24:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=9c19aff7c7561e3a82978a272ecdaad40dda5c00'/>
<id>urn:sha1:9c19aff7c7561e3a82978a272ecdaad40dda5c00</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #23919 -- Removed encoding preambles and future imports</title>
<updated>2017-01-18T08:55:19Z</updated>
<author>
<name>Claude Paroz</name>
<email>claude@2xlibre.net</email>
</author>
<published>2016-11-19T17:19:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=d7b9aaa366dd54ecc3142c588162e3adc7c2f7ac'/>
<id>urn:sha1:d7b9aaa366dd54ecc3142c588162e3adc7c2f7ac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #24970 -- Added --managers and --admins options to the sendtestemail management command.</title>
<updated>2015-06-22T11:21:26Z</updated>
<author>
<name>Rolo</name>
<email>rolo@wildfish.com</email>
</author>
<published>2015-06-16T12:46:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=e7b4bd48c7b81718cfae6f30f1868cf45311ca86'/>
<id>urn:sha1:e7b4bd48c7b81718cfae6f30f1868cf45311ca86</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Removed unused imports.</title>
<updated>2015-03-20T21:57:11Z</updated>
<author>
<name>Tim Graham</name>
<email>timograham@gmail.com</email>
</author>
<published>2015-03-20T21:57:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=a3e75f6bede9eab2933295780d8643509cea09f1'/>
<id>urn:sha1:a3e75f6bede9eab2933295780d8643509cea09f1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Adapted sendtestemail to be more argparse-ish</title>
<updated>2015-03-20T19:40:35Z</updated>
<author>
<name>Claude Paroz</name>
<email>claude@2xlibre.net</email>
</author>
<published>2015-03-20T19:23:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=ba37ac749ed090d0c675fd0525ae207ef1362bd8'/>
<id>urn:sha1:ba37ac749ed090d0c675fd0525ae207ef1362bd8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Removed unused import.</title>
<updated>2015-03-20T17:31:49Z</updated>
<author>
<name>Tim Graham</name>
<email>timograham@gmail.com</email>
</author>
<published>2015-03-20T17:31:49Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=4a5d967dfeb930ae47bbd0d507c462ac132c284f'/>
<id>urn:sha1:4a5d967dfeb930ae47bbd0d507c462ac132c284f</id>
<content type='text'>
</content>
</entry>
</feed>
