title: Mailing the html report of cucumber through jenkins
body: <p>Using the Cucumber reports plugin, able to generate the reports successfully. But when these reports are mailed using the mail plugin, the report doesn't look good at all.</p>
  
  <p>How to send the html report like the view in the mail.
  Need to mail all the reports "overview-failures, overview-features, overview-steps, overview-tags, report-feature_features-publish-mediaLibrary-MediaLibrary-feature, report-tag_developement" from jenkins.</p>
  
  <p>Using the pre-script using in</p>
  
  <pre><code>dref reportPath=build.getWorkspace().child("/home/nagarjuna/jenkin/Simplify360_UI/target/site/cucumber-reports/cucumber-html-reports/overview-failures.html")
  msg.setContent(reportPath.readToString()."text/html")
  </code></pre>
  
  <p>Other files in the reports folder are, which includes supporting files to render the report</p>
  
  <pre><code>css
  embeddings
  fonts
  images
  js
  overview-failures.html
  overview-features.html
  overview-steps.html
  overview-tags.html
  report-feature_features-publish-mediaLibrary-MediaLibrary-feature.html
  report-tag_developement.html
  </code></pre>
  
  <p>Current mailed reports looks like
  <a href="https://i.stack.imgur.com/fsBrf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fsBrf.png" alt="enter image description here"></a></p>