title: JavaMail attachment and body issue
body: <p>I am using below code to attach a pdf file to mail (JAVAMAIL). this postion works perfectly and adds attachment to my mail but this mail does not have any body. </p>
  
  <pre><code>        Multipart multipart = new MimeMultipart();
          msg.setContent(multipart);
          DataSource source = new FileDataSource(pdf);
          MimeBodyPart messageBodyPart = new MimeBodyPart();
          messageBodyPart.setDataHandler(new DataHandler(source));
          messageBodyPart.setFileName(pdf.getName().toString());
          multipart.addBodyPart(messageBodyPart);
          msg.setContent(multipart);
  </code></pre>
  
  <p>when i add below lines to my code it removes attachment and send me mail containing the text only.</p>
  
  <pre><code>msg.setText(body);
  </code></pre>
  
  <p>please help me to add both attachment and test body to my mail.</p>