title: Unable to get proper format for Java mail
body: <p>I am sending emails using Java like this:</p>
  
  <pre><code>StringBuilder stringBuilder=new StringBuilder("&lt;p&gt;Priority:"+escalationDTO.getEscalationPriority()+"&lt;/p&gt;&lt;br/&gt;&lt;p&gt;Status="+escalationDTO.getEscalationStatus()+"&lt;/p&gt;&lt;br/&gt;&lt;p&gt;Type="+escalationDTO.getEscalationType()+"&lt;/p&gt;&lt;br/&gt;&lt;p&gt;Description="+escalationDTO.getEscalationDescription()+"&lt;/p&gt;&lt;br/&gt;&lt;p&gt;StartDate="+new Date(new java.util.Date().getTime())+"&lt;/p&gt;&lt;br/&gt;&lt;p&gt;EndDate="+sqldate1+"&lt;/p&gt;"  );
  </code></pre>
  
  <p>But the output I get in my mailbox is as follows:</p>
  
  <pre><code>&lt;p&gt;Priority:P1&lt;/p&gt;&lt;br/&gt;&lt;p&gt;Status=closed&lt;/p&gt;&lt;br/&gt;&lt;p&gt;Type=C&lt;/p&gt;&lt;br/&gt;&lt;p&gt;Description=werrwe&lt;/p&gt;&lt;br/&gt;&lt;p&gt;StartDate=2012-04-24&lt;/p&gt;&lt;br/&gt;&lt;p&gt;EndDate=2010-08-09&lt;/p&gt;
  </code></pre>
  
  <p>I don't want HTML tags to appear in the email. Each <code>&lt;p&gt;</code> element should cause a line break.</p>
  
  <p>This is my mail class:</p>
  
  <pre><code>package helper;
  
  /**
   * Created by IntelliJ IDEA.
   * User: Milind
   * Date: 4/24/12
   * Time: 4:05 PM
   * To change this template use File | Settings | File Templates.
   */
  
  import java.util.Properties;
  
  import javax.mail.Message;
  import javax.mail.MessagingException;
  import javax.mail.Session;
  import javax.mail.Transport;
  import javax.mail.Message.RecipientType;
  import javax.mail.internet.AddressException;
  import javax.mail.internet.InternetAddress;
  import javax.mail.internet.MimeMessage;
  
  public class SendMail {
  
      private String from;
      private String to;
      private String subject;
      private String text;
  
      public SendMail(String subject1,String body) {
         from = "Admin@zedo.com";
         to = "abc@zedo.com";
         subject = subject1;
         text = body;
         System.out.println(subject);
      }
  
      public void send(){
  
          Properties props = new Properties();
          props.put("mail.smtp.host", "smtp.bb.zedo.com");
          props.put("mail.smtp.port", "25");
  
          Session mailSession = Session.getDefaultInstance(props);
          Message simpleMessage = new MimeMessage(mailSession);
  
          InternetAddress fromAddress = null;
          InternetAddress toAddress = null;
          try {
              fromAddress = new InternetAddress(from);
              toAddress = new InternetAddress(to);
          } catch (AddressException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
  
          try {
              simpleMessage.setFrom(fromAddress);
              simpleMessage.setRecipient(RecipientType.TO, toAddress);
              simpleMessage.setSubject(subject);
              simpleMessage.setText(text);
              Transport.send(simpleMessage);
  
          } catch (MessagingException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
      }
  }
  </code></pre>