title: Headers are missing in email
body: <p>Thanks for the prompt information for the queries posted.</p>
  
  <p>Herez the problem am facing. Am trying to send an email. I want to add  my custom headers. From outlook when am seeing the headers are missing</p>
  
  <pre><code>    // Recipient's email ID needs to be mentioned.
      String to = "sarveswararao.n123@gmail.com";
  
      // Sender's email ID needs to be mentioned
      String from = "snallamilli@xxx.com";
  
      // Assuming you are sending email from localhost
       String host = "smtp.xxx.com";
  
        String bounceAddr = "email_framework@xxx.onmicrosoft.com";
  
      // Get system properties
      Properties properties = System.getProperties();
  
      // Setup mail server
      properties.setProperty("mail.smtp.host", host);
  
      //This property will go as RETURN-PATH
        properties.setProperty("mail.smtp.from", bounceAddr);
  
      // Get the default Session object.
      Session session = Session.getDefaultInstance(properties);
  
      try {
          // Create a default MimeMessage object.
          MimeMessage message = new MimeMessage(session);
  
          // Set From: header field of the header.
          message.setFrom(new InternetAddress(from));
  
          // Set To: header field of the header.
          message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
  
          // Set Subject: header field
          message.setSubject("This is the Subject Line!");
  
          // Now set the actual message
          message.setText("This is actual message");
  
          message.setHeader("x-mycustom-info", "value");  
  
  
  
  
          // Send message
          Transport.send(message);
          System.out.println("Sent message successfully....");
      } catch (MessagingException mex) {
          mex.printStackTrace();
      }
  </code></pre>