'Dummy send mechanism that crashes for 1 recipient'

def send_email_exception(self, recipient, *args, **kwargs):

    if (recipient == 'test1@example.com'):
        self.sent.append(recipient)
        return True
    elif (recipient == 'test2@example.com'):
        raise RuntimeError
    else:
        return False
