Revision dd6a7b9b snf-astakos-app/astakos/im/notifications.py

b/snf-astakos-app/astakos/im/notifications.py
37 37
from smtplib import SMTPException
38 38

  
39 39
from django.conf import settings
40
from django.core.mail import send_mail
40
from django.core.mail import send_mail, get_connection
41 41
from django.utils.translation import ugettext as _
42 42
from django.template.loader import render_to_string
43 43

  
......
72 72
                self.subject,
73 73
                self.message,
74 74
                self.sender,
75
                self.recipients)
75
                self.recipients,
76
                connection=get_connection())
76 77
        except (SMTPException, socket.error), e:
77 78
            logger.exception(e)
78 79
            raise NotificationError(self)

Also available in: Unified diff