def send(self, connection):

        assert self.recipients, "No recipients have been added"
        assert self.body or self.html, "No body or HTML has been set"
        assert self.sender, "No sender address has been set"

        if self.is_bad_headers():
            raise BadHeaderError

        connection.send(self)
Verifies and sends the message.
dataset/ETHPy150Open ajford/flask-sendmail/flask_sendmail/message.py/Message.send