Html report is not rendered in outlook mail body

Logan Kim 0 Reputation points
2024-05-16T16:23:13.57+00:00

Image Hello, I'm creating pytest result report using pytest <mytest>.py -vs --html=<path_to>/emailable-report.html --self-contained-html, and automated it through jenkins. I'm sending the mail body using body: readFile(<path_to>/emailable-report.html), but I can't see it like this from the mail body. At the same time, I can open this same report file from browser (edge, chrome, etc). So this html is not rendered well only to outlook mail body. I tried to change my code, or I also ran System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "") from jenkins as recommended, but nothing worked.

Outlook
Outlook
A family of Microsoft email and calendar products.
3,182 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,626 questions
0 comments No comments
{count} votes