diff --git a/rowers/models.py b/rowers/models.py index f8e75a01..c5afa452 100644 --- a/rowers/models.py +++ b/rowers/models.py @@ -571,6 +571,8 @@ class Rower(models.Model): getemailnotifications = models.BooleanField(default=False, verbose_name='Receive email notifications') + emailbounced = models.BooleanField(default=False, + verbose_name='Email Address Bounced') rowerplan = models.CharField(default='basic',max_length=30, choices=plans) diff --git a/rowers/templates/privacypolicy.html b/rowers/templates/privacypolicy.html index 924c63ca..a3faa516 100644 --- a/rowers/templates/privacypolicy.html +++ b/rowers/templates/privacypolicy.html @@ -92,7 +92,28 @@

The data protection officer for rowsandall.com is Sander Roosendaal and he may be contacted at support@rowsandall.com. -

+

+ +

Notifications and Email Policy

+ +

+ Some actions on the site result in an individual email sent to you. +

+ +

+ We will rarely use mass email to communicate to all our users. These cases + are limited to substantial changes in terms and conditions and other + announcements impacting the terms on which you use the site. We will + it is important to get these messages to you. If you do not with + to receive such emails, you can indicate so in the user settings. +

+ +

+ Other site related communication (new features, outages, bugs, + price changes) are communicated through announcements on the + website, throught Twitter, Facebook and our blog + posts. +

Data Deletion

diff --git a/rowers/views.py b/rowers/views.py index f2ba6f6b..69efcd63 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -11231,11 +11231,16 @@ def rower_edit_view(request,rowerid=0,message=""): getemailnotifications = cd['getemailnotifications'] defaulttimezone=cd['defaulttimezone'] u = r.user + if u.email != email and len(email): + resetbounce = True + else: + resetbounce = False if len(first_name): u.first_name = first_name u.last_name = last_name if len(email): ## and check_email_freeforuse(u,email): u.email = email + resetbounce = True u.save() @@ -11246,6 +11251,9 @@ def rower_edit_view(request,rowerid=0,message=""): r.showfavoritechartnotes = showfavoritechartnotes r.sex = sex r.birthdate = birthdate + if resetbounce and r.emailbounced: + print "aap" + r.emailbounced = False r.save() form = RowerForm(instance=r) powerform = RowerPowerForm(instance=r) diff --git a/templates/basebase.html b/templates/basebase.html index 6aaaac8a..f88878fe 100644 --- a/templates/basebase.html +++ b/templates/basebase.html @@ -247,6 +247,11 @@ {{ user.rower.protrialexpires|date_dif|ddays }} days left in Pro trial

{% endif %} + {% if user.rower.emailbounced %} +

+ Your email bounced. Please update your email address in the user settings +

+ {% endif %} {% if messages %} {% for message in messages %} {% if message.level == DEFAULT_MESSAGE_LEVELS.ERROR %}