From 408bc55db2f644e23f36b0f42eb95f08345af605 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Wed, 7 Nov 2018 22:48:57 +0100 Subject: [PATCH] mailer: use default port for mails --- rhodecode/lib/celerylib/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhodecode/lib/celerylib/tasks.py b/rhodecode/lib/celerylib/tasks.py index fde9b168..e31a8922 100644 --- a/rhodecode/lib/celerylib/tasks.py +++ b/rhodecode/lib/celerylib/tasks.py @@ -79,7 +79,7 @@ def send_email(recipients, subject, body='', html_body='', email_config=None): # translate our LEGACY config into the one that pyramid_mailer supports email_conf = dict( host=mail_server, - port=email_config.get('smtp_port'), + port=email_config.get('smtp_port', 25), username=email_config.get('smtp_username'), password=email_config.get('smtp_password'),