kootenpv / yagmail

Send email in Python conveniently for gmail using yagmail
MIT License
2.66k stars 265 forks source link

HTML file not shown as inline in outlook #81

Open luokar opened 7 years ago

luokar commented 7 years ago

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: image

What's the expected behavior: html file shown as inline content not an attachment.

RyanSchw commented 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.

kootenpv commented 7 years ago

Maybe you want yagmail.raw? Inline is only for images I believe.