Open luokar opened 7 years ago
Try looking at this from a web browser... I had this issue when I was working on sending a picture when I wanted it to be sent as inline content. Not sure why that is.
Maybe you want yagmail.raw
? Inline is only for images I believe.
con.send(to="test@gmail.com",subject="abc",contents=["abc",r"D:\test.htm"])
or
con.send(to="test@gmail.com",subject="abc",contents=["abc",yagmail.inline(r"D:\test.htm")])
D:\test.htm content:
<html><head></head><body><b>Hello</b></body></html>
What does it look like in outlook:
What's the expected behavior: html file shown as inline content not an attachment.