Revision 18cd931f
b/snf-pithos-app/pithos/api/dispatch.py | ||
---|---|---|
3 | 3 |
|
4 | 4 |
from django.core.mail import send_mail |
5 | 5 |
|
6 |
from astakos.im.settings import DEFAULT_FROM_EMAIL
|
|
6 |
from django.conf import settings
|
|
7 | 7 |
|
8 | 8 |
import socket |
9 | 9 |
from smtplib import SMTPException |
... | ... | |
45 | 45 |
account, container, name = path.split('/', 2) |
46 | 46 |
|
47 | 47 |
subject = 'Invitation to a Pithos+ shared object' |
48 |
from_email = DEFAULT_FROM_EMAIL
|
|
48 |
from_email = settings.SERVER_EMAIL
|
|
49 | 49 |
recipient_list = members |
50 |
message = 'User %s has invited you to a Pithos+ shared object. You can view it under "Shared to me" at "%s".' % (user, path) |
|
50 |
message = ("User %s has invited you to a Pithos+ shared object." |
|
51 |
"You can view it under \"Shared to me\" at \"%s\".") |
|
52 |
message = message % (user, path) |
|
51 | 53 |
try: |
52 | 54 |
send_mail(subject, message, from_email, recipient_list) |
53 | 55 |
print 'INFO: Sharing notification sent for path "%s" to %s' % ( |
Also available in: Unified diff