How can I recieive confirmation for delivered email with JavaMail API?

Viewed 32742

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?

If I use SMTPMessage, how exactly to deal with the result after I've set the notify options?

SMTPMessage smtpMsg = new SMTPMessage(msg);
smtpMsg.setNotifyOptions(SMTPMessage.NOTIFY_SUCCESS);
6 Answers
Related