def send_messages(self, email_messages):
        with transaction.atomic():
            for email in email_messages:
                log_email(email)

                try:
                    return super(LoggingEmailBackend, self).send_messages([email])
                except SMTPException:
                    logger = logging.getLogger('huxley.api')
                    exc_type, exc_value, exc_traceback = sys.exc_info()
                    exc_traceback = ''.join(traceback.format_exception(exc_type, exc_value, exc_traceback))
                    log = json.dumps({
                          'message': exc_traceback,
                          'uri': ', '.join(email.to),
                          'status_code': 500,
                          'username': ''})
                    logger.exception(log)