title: How to disable java mail trace on console when sending an email
body: <p>Here is my code for sending email:</p>
  
  <pre><code>    public void sendMail() 
  {
      try
      {
          // Propiedades de la conexión
          Properties props = new Properties();
          props.put("mail.transport.protocol", "smtp");
          props.put("mail.smtp.host", SMTP_HOST_NAME);
          props.put("mail.smtp.port", SMTP_PORT);
          props.put("mail.smtp.auth", "true");
  
          Authenticator auth = new SMTPAuthenticator();
          Session mailSession = Session.getDefaultInstance(props, auth);
  
          Transport transport = mailSession.getTransport();
  
          MimeMessage message = new MimeMessage(mailSession);
          Multipart multipart = new MimeMultipart("alternative");
  
          BodyPart text = new MimeBodyPart();
          text.setContent(mailMessage,"text/html; charset=UTF-8");
  
          multipart.addBodyPart(text);
  
          message.setContent(multipart);
  
          if(friendlyName != null){
              //String send = friendlyName + " &lt;" + sender + "&gt;";
              message.setFrom(new InternetAddress(sender, friendlyName)); 
          }else{
              message.setFrom(new InternetAddress(sender));
          }
  
          message.setSubject(subject,"UTF-8");
          message.addRecipient(Message.RecipientType.TO,
                  new InternetAddress(receiver));
  
          transport.connect();
          transport.sendMessage(message, message.getRecipients(Message.RecipientType.TO));
          transport.close();
  
  
      }catch (Exception e) {
          // TODO: handle exception
      }
  
  }
  </code></pre>
  
  <p>When I send an email I get this output on console (or catalina.out):</p>
  
  <p>>>>>>Sending data EHLO xxxxxx&lt;&lt;&lt;&lt;&lt;&lt;</p>
  
  <p>>>>>>Sending data AUTH LOGIN&lt;&lt;&lt;&lt;&lt;&lt;</p>
  
  <p>>>>>>Sending data xxxxxxxxxxxxxxxxxxxx&lt;&lt;&lt;&lt;&lt;&lt;</p>
  
  <p>>>>>>Sending data xxxxxxxxxxxxxx&lt;&lt;&lt;&lt;&lt;&lt;</p>
  
  <p>>>>>>Sending data MAIL FROM: &lt;&lt;&lt;&lt;&lt;&lt;</p>
  
  <p>>>>>>Sending data RCPT TO: &lt;&lt;&lt;&lt;&lt;&lt;</p>
  
  <p>>>>>>Sending data DATA&lt;&lt;&lt;&lt;&lt;&lt;</p>
  
  <p>>>>>>Sending data &lt;&lt;&lt;&lt;&lt;&lt;</p>
  
  <p>>>>>>Sending data .&lt;&lt;&lt;&lt;&lt;&lt;</p>
  
  <p>>>>>>Sending data QUIT&lt;&lt;&lt;&lt;&lt;&lt;</p>
  
  <p>How can I disable this output? My catalina.out is growing too fast. Setdebug(false) method does not solve my problem.</p>