django-codenerix-email 4.0.11__py2.py3-none-any.whl → 4.0.12__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- codenerix_email/__init__.py +1 -1
- codenerix_email/models.py +21 -3
- {django_codenerix_email-4.0.11.dist-info → django_codenerix_email-4.0.12.dist-info}/METADATA +1 -1
- {django_codenerix_email-4.0.11.dist-info → django_codenerix_email-4.0.12.dist-info}/RECORD +7 -7
- {django_codenerix_email-4.0.11.dist-info → django_codenerix_email-4.0.12.dist-info}/LICENSE +0 -0
- {django_codenerix_email-4.0.11.dist-info → django_codenerix_email-4.0.12.dist-info}/WHEEL +0 -0
- {django_codenerix_email-4.0.11.dist-info → django_codenerix_email-4.0.12.dist-info}/top_level.txt +0 -0
codenerix_email/__init__.py
CHANGED
codenerix_email/models.py
CHANGED
|
@@ -237,7 +237,12 @@ class EmailMessage(CodenerixModel, Debugger):
|
|
|
237
237
|
use_tls = settings.EMAIL_USE_TLS
|
|
238
238
|
|
|
239
239
|
# Remember last connection data
|
|
240
|
-
|
|
240
|
+
connect_info = {
|
|
241
|
+
"host": host,
|
|
242
|
+
"port": port,
|
|
243
|
+
"use_tls": use_tls,
|
|
244
|
+
"legacy": legacy,
|
|
245
|
+
}
|
|
241
246
|
# Get connection
|
|
242
247
|
return (
|
|
243
248
|
get_connection(
|
|
@@ -247,7 +252,7 @@ class EmailMessage(CodenerixModel, Debugger):
|
|
|
247
252
|
password=password,
|
|
248
253
|
use_tls=use_tls,
|
|
249
254
|
),
|
|
250
|
-
|
|
255
|
+
connect_info,
|
|
251
256
|
)
|
|
252
257
|
|
|
253
258
|
def connect(self, legacy=False):
|
|
@@ -365,10 +370,23 @@ class EmailMessage(CodenerixModel, Debugger):
|
|
|
365
370
|
self.log += f"{error}\n"
|
|
366
371
|
except smtplib.SMTPServerDisconnected as e:
|
|
367
372
|
error = f"SMTPServerDisconnected: {e}\n"
|
|
368
|
-
self.warning(error)
|
|
369
373
|
if self.log is None:
|
|
370
374
|
self.log = ""
|
|
371
375
|
self.log += f"{error}\n"
|
|
376
|
+
try:
|
|
377
|
+
connection.open()
|
|
378
|
+
error = None
|
|
379
|
+
except (
|
|
380
|
+
smtplib.SMTPAuthenticationError,
|
|
381
|
+
OSError,
|
|
382
|
+
TimeoutError,
|
|
383
|
+
) as e:
|
|
384
|
+
self.warning(error)
|
|
385
|
+
error = f"SMTPServerReconnect: {e}\n"
|
|
386
|
+
self.warning(error)
|
|
387
|
+
if self.log is None:
|
|
388
|
+
self.log = ""
|
|
389
|
+
self.log += f"{error}\n"
|
|
372
390
|
except smtplib.SMTPException as e:
|
|
373
391
|
error = f"SMTPException: {e}\n"
|
|
374
392
|
self.warning(error)
|
{django_codenerix_email-4.0.11.dist-info → django_codenerix_email-4.0.12.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: django-codenerix-email
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.12
|
|
4
4
|
Summary: Codenerix Email is a module that enables CODENERIX to set send emails in a general manner.
|
|
5
5
|
Home-page: https://github.com/codenerix/django-codenerix-email
|
|
6
6
|
Author: Juan Miguel Taboada Godoy <juanmi@juanmitaboada.com>, Juan Soler Ruiz <soleronline@gmail.com>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
codenerix_email/__init__.py,sha256=
|
|
1
|
+
codenerix_email/__init__.py,sha256=7EbI8PxpPMEHM1uvXlStjZZSYxcLFgwcqtW3UD6OadM,149
|
|
2
2
|
codenerix_email/admin.py,sha256=o3b-MaD7xsWeta0yfU9YNeKBmHQIcmHqXmP2t-hrrWc,1208
|
|
3
3
|
codenerix_email/apps.py,sha256=WXqu1XQibDDyCvvQYt2JbTK4GIpW8BNv5DCbRJS2mmk,149
|
|
4
4
|
codenerix_email/forms.py,sha256=n-UrVPI7NMXNImEdJ4uB0HWHEvBNv71YKZ_RPLW4FSg,4075
|
|
5
|
-
codenerix_email/models.py,sha256=
|
|
5
|
+
codenerix_email/models.py,sha256=Y9Du0C9W3_h9Di9n0HphY15smzG1wFccMasHYjnbP0k,19063
|
|
6
6
|
codenerix_email/urls.py,sha256=QYrSJdhCp2PLrcfv_Y7X4OzxqQ0Q2-z7ObDPE-_WLdw,2595
|
|
7
7
|
codenerix_email/urls_frontend.py,sha256=DG5WS_fGQJC9sezNebPwG-E_WtUWy3Kwz4VUxh82xuc,873
|
|
8
8
|
codenerix_email/views.py,sha256=PyOWSAblRLzbYAzzTCZTR-VapKzf7-jpxnJ9TwX2t7Y,4790
|
|
@@ -70,8 +70,8 @@ codenerix_email/migrations/__pycache__/__init__.cpython-311.pyc,sha256=RbbUUEhcJ
|
|
|
70
70
|
codenerix_email/migrations/__pycache__/__init__.cpython-35.pyc,sha256=2g70xiMW6oJNkIpRM-0Dr5h7AUac-3xyCXPONxp9BBw,147
|
|
71
71
|
codenerix_email/migrations/__pycache__/__init__.cpython-39.pyc,sha256=qNj2NH0YvoWPnCKxkVZPsEFsbM05y7t1njMskNISdVQ,168
|
|
72
72
|
codenerix_email/static/codenerix_email/partials/emailmessages_rows.html,sha256=2KjE_YZ91OAFZuHteQeQ2r2vOBeZmwmnJQ4L-bH4B50,1735
|
|
73
|
-
django_codenerix_email-4.0.
|
|
74
|
-
django_codenerix_email-4.0.
|
|
75
|
-
django_codenerix_email-4.0.
|
|
76
|
-
django_codenerix_email-4.0.
|
|
77
|
-
django_codenerix_email-4.0.
|
|
73
|
+
django_codenerix_email-4.0.12.dist-info/LICENSE,sha256=IXMIpi75XsrJt1Sznt4EftT9c_4X0C9eqK4tHhH8H48,11339
|
|
74
|
+
django_codenerix_email-4.0.12.dist-info/METADATA,sha256=vxgtpJQ43fdEoUhzSjk1kNjzn9OQo2K0X06JM64vv9Q,2640
|
|
75
|
+
django_codenerix_email-4.0.12.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
76
|
+
django_codenerix_email-4.0.12.dist-info/top_level.txt,sha256=lljSA0iKE_UBEM5gIrGQwioC_i8Jjnp-aR1LFElENgw,16
|
|
77
|
+
django_codenerix_email-4.0.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{django_codenerix_email-4.0.11.dist-info → django_codenerix_email-4.0.12.dist-info}/top_level.txt
RENAMED
|
File without changes
|