def get_connection(self, fail_silently=False):
        """Retrieve connection to send email"""
        from protean.services.email import get_connection

        if not self.connection:
            self.connection = get_connection(fail_silently=fail_silently)

        return self.connection
def get_connection ( self , fail_silently = False ) : from protean . services . email import get_connection if not self . connection : self . connection = get_connection ( fail_silently = fail_silently ) return self . connection
Retrieve connection to send email