Skip to content

use html instead of body for simple html message#58

Open
m4skedbyte wants to merge 2 commits intomarktennyson:developmentfrom
m4skedbyte:development
Open

use html instead of body for simple html message#58
m4skedbyte wants to merge 2 commits intomarktennyson:developmentfrom
m4skedbyte:development

Conversation

@m4skedbyte
Copy link
Copy Markdown

@m4skedbyte m4skedbyte commented Oct 18, 2023

If you try to use body with subtype="html" active, the mail body will not be displayed correctly (e.g. in Outlook). The body text is displayed unformatted and a .htm file is attached to the mail, containing the same content as the body.

image

I updated the example in the docs (Send a simple html message) and extended the warning in msg.py (if self.body is set but the subtype is html)

Extend warning to use `html` instead of `body` if sending a simple html message (subtype="html")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant