From 4f343a10f765c4a6672c8ef4c39d044dd7d6653f Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 28 Apr 2023 13:04:08 +0200 Subject: [PATCH] [4.2.x] Refs #34118, Refs #34504 -- Added backward incompatibility note about EmailBackend.ssl_context. Follow up to 2848e5d0ce5cf3c31fe87525536093b21d570f69. Backport of 5a6d4d3bfde07daab9777545694beb014c832264 from main --- docs/releases/4.2.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/releases/4.2.txt b/docs/releases/4.2.txt index 04482e3c17c..b113f3d2174 100644 --- a/docs/releases/4.2.txt +++ b/docs/releases/4.2.txt @@ -467,6 +467,12 @@ Miscellaneous * Support for ``PROJ`` < 5 is removed. +* :class:`~django.core.mail.backends.smtp.EmailBackend` now verifies a + :py:attr:`hostname ` and + :py:attr:`certificates `. If you need the + previous behavior that is less restrictive and not recommended, subclass + ``EmailBackend`` and override the ``ssl_context`` property. + .. _deprecated-features-4.2: Features deprecated in 4.2