Commit 53ace96d authored by Chris Reffett's avatar Chris Reffett
Browse files

Don't try to send email if email host/port undefined

parent 18c4be9d
......@@ -227,6 +227,8 @@ def signup(request):
full_name = signup_form.cleaned_data.get('full_name')
description = signup_form.cleaned_data.get('description')
# Only send mail if we've defined the mailserver
if settings.EMAIL_HOST and settings.EMAIL_PORT:
send_mail('Signup from %s' % (username), '%s signed up at %s\n'
'Username: %s\nMessage: %s\nPlease attend to this request at '
'your earliest convenience.' % (str(full_name),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment