SMTP settings: Timeout during testing

This commit is contained in:
Raphael Michel
2020-12-19 19:46:23 +01:00
parent 070b871254
commit 609203196b
2 changed files with 3 additions and 3 deletions

View File

@@ -594,7 +594,7 @@ class MailSettings(EventSettingsViewMixin, EventSettingsFormView):
)
if request.POST.get('test', '0').strip() == '1':
backend = self.request.event.get_mail_backend(force_custom=True)
backend = self.request.event.get_mail_backend(force_custom=True, timeout=10)
try:
backend.test(self.request.event.settings.mail_from)
except Exception as e: