Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion flask_mailing/msg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down