# HG changeset patch # User Marcin Kuzminski # Date 2018-11-07 21:48:57 # Node ID 3a7132a3155b979036c4b1ced067673b7056cbe3 # Parent 99364d713fd4d0024d8aacfbc5532baec811ea4a 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'),