# HG changeset patch # User Marcin Kuzminski # Date 2018-11-07 21:48:57 # Node ID e72bfd2049f200a4128a3b930d2e8309f57f24e0 # Parent 28ab20dd4262584aff078520eab520a8bd214248 mailer: use default port for mails diff --git a/rhodecode/lib/celerylib/tasks.py b/rhodecode/lib/celerylib/tasks.py --- a/rhodecode/lib/celerylib/tasks.py +++ b/rhodecode/lib/celerylib/tasks.py @@ -79,7 +79,7 @@ def send_email(recipients, subject, body # 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'),