How can I get the Delivery Status Notification from MTA (Mail Transfer Agent) like Exim, using Javamail library?

时间:2016-05-17 11:05:45

标签: java javamail exim exim4

I'm asking here if there is a way to ask a MTA (like EXIM) for

Delivery Status Notifications through Javamail library, as i know there is a class

called DeliveryStatus in javamail but i can't figure out how to use it in order to

get DSN from EXIM. Thanks

1 个答案:

答案 0 :(得分:0)

RFC 1891介绍了如何申请投放状态通知,com.sun.mail.smtp package javadocs描述了您可以根据RFC 1891中的功能设置的mail.smtp.dsn.notifymail.smtp.dsn.ret属性。您可以还可以使用SMTPMessage类,其中包含设置这些notification options的方法。