title: Jenkins EMail-ext plugin sends groovy code in the Email body
body: <p>The 'Default Content' of Extended E-mail Notification is set as below and Default Content Type is 'HTML (text/html)':</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;%
      if(build.testResultAction) {
          def testResult = build.testResultAction
          def testCount = String.format("%.2f",(testResult.totalCount))
          def testPassed = String.format("%.2f",())
          def testFailed = String.format("%.2f",(testResult.result.failCount))
          def testSkipped = String.format("%.2f",())
          def buildDuration = String.format("%.2f",(testResult.result.duration ))
      }
  %&gt;
  Hi All,&lt;br&gt;&lt;br&gt;
  
  The execution of the Automation suite has been completed and the results are as below.&lt;br&gt;&lt;br&gt;
  
  &lt;b&gt;&lt;u&gt;Configuration :&lt;/u&gt;&lt;/b&gt;&lt;br&gt;
  Project Name : $JOB_NAME&lt;br&gt;
  Test Server URL : $Test_Server_URL&lt;br&gt;
  Group Name : $Group_Name&lt;br&gt;&lt;br&gt;
  
  &lt;b&gt;&lt;u&gt;Execution Results :&lt;/u&gt;&lt;/b&gt;&lt;br&gt;
  Status : &lt;font color="blue"&gt;$BUILD_STATUS&lt;/font&gt;&lt;br&gt;
  Tests run : $testCount&lt;br&gt;
  Failures : $testFailed&lt;br&gt;
  Errors : 0&lt;br&gt;
  Skipped : 0&lt;br&gt;
  Total time : $buildDuration&lt;br&gt;
  Finished at: Tue May 06 17:12:19 IST 2014&lt;br&gt;
  Build URL : $BUILD_URL&lt;br&gt;&lt;br&gt;
  
  The HTML version of the automation results and the log file is attached with this e-mail for your reference.&lt;br&gt;&lt;br&gt;
  
  Regards,&lt;br&gt;
  Jenkins CI Tool
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But the report e-mail has the groovy code itself in its body rather than the expected values.</p>