title: How to get status of mail send by Mandrill java api?
body: <p>I have get an <strong>Internal server exception</strong> for getting mail information while using lutung's java API of mandrill. Here is my code.</p>
  
  <pre><code>public MandrillMessageInfo getMessageInfo(String id) {
  MandrillApi mandrillApi = new MandrillApi("Your api key");
  MandrillMessageInfo info = null;
  try {
      info = mandrillApi.messages().info(id);
      log.debug("Message status-&gt; Email {}, state: {}, timeOfSent: {} ", info.getEmail() ,info.getState(), TimeUtil.getLocalTimeString(info.getTs()));
  } catch (Exception e) {
      log.debug("Exception occurs while getting message info for id: {}, exception is: {} ", id, e.getMessage());
      throw new MailServiceException(ErrorCodes.ERROR_INTERNAL_SERVER_ERROR, ErrorCodes.ERROR_MESSAGE_INTERNAL_SERVER_ERROR);
  } 
  return info;
  }
  </code></pre>