'body' sends content twice? #85
Unanswered
courdegard
asked this question in
Q&A
Replies: 2 comments 1 reply
-
How did you solve it? html_message = """ Hi this test mail, thanks for using Fastapi-mail """ message = MessageSchema( subject="Test", recipients=email.dict().get("email"), # List of recipients, as many as you can pass body=html_message, subtype='html' )In the email, I see two content Hi this test mail, thanks for using Fastapi-mail Hi this test mail, thanks for using Fastapi-mail |
Beta Was this translation helpful? Give feedback.
1 reply
-
Correct, instead of body please use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Feel free to delete this, it started working
Hi, great package. I am probably making a simple mistake here but when my emails send, the body text is repeated. The message looks like
When "bodyText"=="Example", the mail says ExampleExample. When bodyText=="Example.html" where Example.html looks like
<p> example </p>
, the mail says<p> example </p>
example
When I get rid of the subtype argument I don't see the formatted html, which makes sense. I'm not using an html template but I don't see why that would make a difference in the case of just passing in a string. I can't imagine this is an actual issue with the code so I'm wondering what I have done wrong. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions