EmailExt- Jenkinsfile - HTML and CSS files are not embedded
I am trying to attach html report in the email body and send the mail using Email-ext plugin.
email-ext attachmentsPattern: "filePathToBeAttached", mimeType:'text/html', body: readFile("${env.WORKSPACE}/path_to_report.html"),to: [email protected]", subject:"test report"
But I could see plain HTML without proper formatting and absence of CSS styling in the email report sent.
Any help pls.
This is currently working for me. HTML is properly formatted in the mail, in outlook. I'm not using any css.