diff --git a/flask_mail.py b/flask_mail.py index a485782..77c857c 100644 --- a/flask_mail.py +++ b/flask_mail.py @@ -429,15 +429,16 @@ def _record(message, app): finally: email_dispatched.disconnect(_record) - def send(self, message): + def send(self, message, envelope_from=None): """Sends a single message instance. If TESTING is True the message will not actually be sent. :param message: a Message instance. + :param envelope_from: Email address to be used in MAIL FROM command. """ with self.connect() as connection: - message.send(connection) + connection.send(message, envelope_from) def send_message(self, *args, **kwargs): """Shortcut for send(msg).