summaryrefslogtreecommitdiff
path: root/chimere/main/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/main/forms.py')
-rw-r--r--chimere/main/forms.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/chimere/main/forms.py b/chimere/main/forms.py
index 4618321..f2490da 100644
--- a/chimere/main/forms.py
+++ b/chimere/main/forms.py
@@ -33,6 +33,8 @@ from chimere.main.models import Marker, Route, PropertyModel, Property, Area,\
from chimere.main.widgets import AreaField, PointField, TextareaWidget
def notifyStaff(subject, body, sender=None):
+ if not settings.EMAIL_HOST:
+ return
if settings.PROJECT_NAME:
subject = u'[%s] %s' % (settings.PROJECT_NAME, subject)
user_list = [u.email for u in