Skip to content

Commit e98abbf

Browse files
committed
Change the port accepted for debug purposes to 2025 instead of 1025 to
not conflict with the port on the live server - Legacy-Id: 6715
1 parent ecf68db commit e98abbf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/utils/mail.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ def send_mail_mime(request, to, frm, subject, msg, cc=None, extra=None, toUser=F
177177
for k, v in extra.items():
178178
if v:
179179
msg[k] = v
180-
# start debug server with python -m smtpd -n -c DebuggingServer localhost:1025
180+
# start debug server with python -m smtpd -n -c DebuggingServer localhost:2025
181181
# then put USING_DEBUG_EMAIL_SERVER=True and EMAIL_HOST='localhost'
182-
# and EMAIL_PORT=1025 in settings_local.py
183-
debugging = getattr(settings, "USING_DEBUG_EMAIL_SERVER", False) and settings.EMAIL_HOST == 'localhost' and settings.EMAIL_PORT == 1025
182+
# and EMAIL_PORT=2025 in settings_local.py
183+
debugging = getattr(settings, "USING_DEBUG_EMAIL_SERVER", False) and settings.EMAIL_HOST == 'localhost' and settings.EMAIL_PORT == 2025
184184

185185
if test_mode or debugging or settings.SERVER_MODE == 'production':
186186
send_smtp(msg, bcc)

0 commit comments

Comments
 (0)