kootenpv / yagmail

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

How to send an HTML report? #110

Closed TX0509 closed 6 years ago

TX0509 commented 6 years ago

I'm an tester, can you tell me how to send html test report and normal display in mail?

kootenpv commented 6 years ago

yag.send(contents="test.html") or yag.send(contents="<h1>hello</h1>"). see readme

or maybe you mean:

yag.send(contents=yagmail.raw("<h1>hello</h1>"))
TX0509 commented 6 years ago

Thank you very much!