title: no object DCH for MIME type csv/html
body: <p>I saw similar issues but nothing worked for me. I am using java and apache camel.
  My problem is that, sometimes it is working fine and able to send mail. But sometimes getting this error. Below is my code,</p>
  <pre><code>.process(new Processor() {
                  public void process(Exchange exchange) throws Exception {
                      exchange.getIn().setHeader(&quot;Content-Type&quot;, &quot;text/plain&quot;);
                      String date = exchange.getIn().getHeader(&quot;currentDate&quot;, String.class);
                      String body = &quot;Hi\nPlease find the attached file contains load error 
                               details  &quot;
                              + &quot;error report is available in the location : \n&quot; + outputFolder
                              + date + &quot;.\nThanks&quot;;
                      try {
                          exchange.getIn().addAttachment(&quot;Error_Report_&quot; + date + &quot;.csv&quot;,
                              new DataHandler( exchange.getIn().getBody(), &quot;csv/html&quot;));
                      }catch(Exception e) {
                          log.info(&quot;Exception while attaching attachment&quot;);
                      }
                      exchange.getIn().setBody(body);
                  }
              }).to(&quot;{{mail.smtp.url}}&quot;).log(&quot;Mail Send succesfully&quot;)
  </code></pre>
  <p>mail attachment content is available in camel exchange body. Need help</p>