Created
January 20, 2012 18:33
-
-
Save oeon/1648880 to your computer and use it in GitHub Desktop.
send email when new user registers [GeoNode], add to last line of `/var/lib/geonode/lib/python2.6/site-packages/registration/models.py`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#don't forget to add! | |
#from django.core.mail import send_mail | |
send_mail("New user: " + self.user.email + " has registered on GeoNode", "New user: " + self.user.email + " has registered on GeoNode as " + self.user.username, settings.DEFAULT_FROM_EMAIL, ['your_email@example.com', 'other_admin@example.com']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment