title: JavaMail API sending attachment as forwarded Mails to Sender
body: <p>I'm trying to send two attachments with the help of javamail API but the sender is receiving the mails the attachments are delivering as forwarded messages to the sender. Also i'm not able to see the body text in the mail.I'm sending to an outlook email client.
  its like attachments are coming as separate mail in the same mail and when i click on the separate mail in the mail then it shows me the attachments.Like i have opened another mail in the same mail. 
  Can anyone please check what i'm doing wrong</p>
  
  <p>What im getting right now
  <a href="https://i.stack.imgur.com/hQ5CV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hQ5CV.png" alt="enter image description here"></a>
   when i click on the internal mail </p>
  
  <p><a href="https://i.stack.imgur.com/WMmIp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WMmIp.png" alt="enter image description here"></a></p>
  
  <p>Below is the code</p>
  
  <pre><code>    deltaDf.coalesce(1)
      .write.mode("overwrite")
      .format("com.databricks.spark.csv")
      .option("header", "true")
      .save("/user/test/test1/Deltafile/")
  
    val deltahdfsname = fs.globStatus(new Path("/user/test/test1/Deltafile/part*"))(0).getPath().getName()
    val deltapath = new Path(fs.getName() + "/user/test/test1/Deltafile/" + deltahdfsname)
    val deltastream = fs.open(deltapath)
    val deltafileName = "delta.csv"
  
    val bodyText = "Hi All, &lt;br&gt; &lt;/br&gt; Attached are the Concur Delta File and Exception Report  &lt;br&gt; &lt;/br&gt;  please take the neccassory Action."
    val from = "tests@test.com"
    val smtpHost = "xmail.xxxxx.com"
  
    val properties = System.getProperties
    properties.put("mail.smtp.host",smtpHost)
    properties.put("mail.from", from)
    properties.put("mail.smtp.auth", "false")
    properties.put("mail.smtp.port", "25")
    properties.put("mail.smtp.starttls.enable", "true")
  
     val deltaBodyPart = new MimeBodyPart()
      deltaBodyPart.setDataHandler(new DataHandler(new ByteArrayDataSource(deltastream, "text/csv")))
      deltaBodyPart.setFileName(deltafileName)
  
  
  
      val multipart = new MimeMultipart()
      multipart.addBodyPart(deltaBodyPart)
      //multipart.addBodyPart(ExceptionBodyPart)
  
      val session = Session.getInstance(properties)
      var message = new MimeMessage(session)
  
      message.setFrom(new InternetAddress("tests@test.com"))
      message.setRecipients(Message.RecipientType.TO, "suraj@xxxx.com")
      message.setSubject("test message")
      message.setText("bodyText","text/html;charset=utf-8")
      message.setContent(multipart,"text/html;charset=utf-8")
      Transport.send(message)
  </code></pre>
  
  <p>I just want that the sender should receive the attachments in a single window. </p>