diff --git a/docs/example.md b/docs/example.md index ac93c9a..812d669 100644 --- a/docs/example.md +++ b/docs/example.md @@ -65,7 +65,7 @@ async def html_email(): message = Message( subject="Flask-Mailing module test html mail", recipients=["aniketsarkar@yahoo.com"], - body=html, + html=html, subtype="html" ) diff --git a/flask_mailing/msg.py b/flask_mailing/msg.py index 97a7e46..5892dc9 100644 --- a/flask_mailing/msg.py +++ b/flask_mailing/msg.py @@ -103,7 +103,7 @@ async def _message(self, sender): if not self.html and self.subtype == "html": if self.body: warnings.warn( - "Use ``template_body`` instead of ``body`` to pass data into Jinja2 template", + "Use ``template_body`` instead of ``body`` to pass data into Jinja2 template. Use ``html`` instead of ``body`` to send a simple html message.", DeprecationWarning, ) self.message.attach(