summaryrefslogtreecommitdiff
path: root/coip
diff options
context:
space:
mode:
Diffstat (limited to 'coip')
-rw-r--r--coip/apps/invitation/models.py33
1 files changed, 16 insertions, 17 deletions
diff --git a/coip/apps/invitation/models.py b/coip/apps/invitation/models.py
index 96a856a..f42ac6a 100644
--- a/coip/apps/invitation/models.py
+++ b/coip/apps/invitation/models.py
@@ -29,24 +29,23 @@ class Invitation(models.Model):
def send_email(self):
pinviter = last_used_profile(self.inviter)
- send_mail('[coip] Invitation to join \'%s\'' % (self.name.short),
+ send_mail('[coip] Invitation to join \'%s\'' % (self.name.short),
'''
-
- %s (%s) has invited you to join \'%s\':
-
- %s
-
- If you want to accept the invitation open this link in your browser:
-
- http://localhost/invitation/%s/accept
-
- To view information about \'%s\' open this link in your browser:
-
- http://localhost/name/%s
-
- ''' % (pinviter.display_name,pinviter.identifier,self.name.short,self.message,self.nonce,self.name.id),
- 'noreply@coip.example.com',[self.email], fail_silently=False)
+%s (%s) has invited you to join \'%s\':
- pprint("sent email to %s" % (self.email))
+---
+%s
+---
+
+If you want to accept the invitation open this link in your browser:
+http://localhost/invitation/%s/accept
+
+To view information about \'%s\' open this link in your browser:
+http://localhost/name/%s
+
+''' % (pinviter.display_name,pinviter.identifier,self.name.short,self.message,self.nonce,self.name.short,self.name.id),
+ 'noreply@coip.example.com',
+ [self.email],
+ fail_silently=False)
return