def send(self, *args, **kwargs): """Sends the email message.""" # Set up the connection connection = get_sendgrid_connection() self.connection = connection logger.debug("Connection: {c}".format(c=connection)) self.update_headers() response = super(SendGridEmailMessage, self).send(*args, **kwargs) logger.debug("Tried to send an email with SendGrid and got response {r}".format(r=response)) sendgrid_email_sent.send(sender=self, response=response) return response