title: Sending pdf attachments in Mule errors "no object DCH for MIME type"
body: <p>Versions: Mule 3.6, JRE 7, javax.mail 1.5.4</p>
  
  <p>Problem:  Sending SMTP Email with PDF attachment fails with error:</p>
  
  <p><code>javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/pdf</code></p>
  
  <p>Code to send email:</p>
  
  <pre><code>        DataSource fileDataSource =new FileDataSource("c:\\temp\\agreement.pdf");
          InputStream fi = fileDataSource.getInputStream();
          DataSource fileDataSource1 = new ByteArrayDataSource(fi, "application/pdf");
          msg.addOutboundAttachment("agreement.pdf", fileDataSource1, "application/pdf");
  </code></pre>
  
  <p>Switching to sending a text/plain, or text/html works fine.  </p>
  
  <p>After reading <a href="https://stackoverflow.com/questions/26835693/mule-no-object-dch-for-mime-type-application-pdf">SO-Mule no object DCH for MIME type application/pdf</a> I have tried upgrading to javax.mail.jar 1.5.4 but problem persists.</p>