title: How can I recieive confirmation for delivered email with JavaMail API?
body: <p>I'm writing a program, that sends email messages and want to know when the receiver receives the email message I've sent to him. How can I do this using JavaMail API?</p>
  
  <p>If I use SMTPMessage, how exactly to deal with the result after I've set the notify options?</p>
  
  <pre><code>SMTPMessage smtpMsg = new SMTPMessage(msg);
  smtpMsg.setNotifyOptions(SMTPMessage.NOTIFY_SUCCESS);
  </code></pre>