title: How can I get SMTP server response using JavaMail?
body: <p>I'm using JavaMail 1.5 to send mail and see from my tests that messages are sent successfully.
  I use <code>SMTPTransport</code> to get last server response, but it's empty, same as code. <code>getReportSuccess()</code> returns <code>false</code>. </p>
  
  <pre><code>SMTPTransport t = (SMTPTransport)session.getTransport("smtps");
  t.send(message);
  String response = t.getLastServerResponse();
  boolean s = t.getReportSuccess();
  int code = t.getLastReturnCode();
  return response;
  </code></pre>
  
  <p>What can be the reason of getting such response, though the message is sent successfully?</p>
  
  <p>Is there any way to get correct SMTP response?</p>