You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide the ability to enable the DSN(Delivery Status Notification) mechanism #574
We need to be able to enable DSN(rfc3461) for outgoing emails.
Request
It is necessary to implement the ability to specify notification options and return options for notifications. The library should wrap MimeMessage in SMTPMessage and provide control over notification options and return options. At the transport level, SMTPMessage will be processed correctly by the java-mail library automatically.
Added a DeliveryStatusNotification API with NotifyOption values SUCCESS, FAILURE, DELAY, NEVER and ReturnOption values FULL_MESSAGE, HEADERS_ONLY.
Added builder support through withDeliveryStatusNotification(...), withDeliveryStatusNotificationNotifyOptions(...), and withDeliveryStatusNotificationReturnOption(...).
Added string-based notify/return-option methods for CLI and property-file use.
Added defaults/overrides support and property/Spring support via:
Activity
bbottema commentedon Jul 3, 2026
Implemented on the feature branch.
Summary:
DeliveryStatusNotificationAPI withNotifyOptionvaluesSUCCESS,FAILURE,DELAY,NEVERandReturnOptionvaluesFULL_MESSAGE,HEADERS_ONLY.withDeliveryStatusNotification(...),withDeliveryStatusNotificationNotifyOptions(...), andwithDeliveryStatusNotificationReturnOption(...).simplejavamail.defaults.delivery.status.notification.notifysimplejavamail.defaults.delivery.status.notification.return.optionSMTPMessageDSN state so the transport emits the configuredNOTIFYandRETparameters.Usage example:
Property-file equivalent:
feat(email): add delivery status notification support (#574)
bbottema commentedon Jul 8, 2026
Released in Simple Java Mail v9.0.0, which is now available from Maven Central:
https://repo1.maven.org/maven2/org/simplejavamail/simple-java-mail/9.0.0/
Release notes:
https://github.com/bbottema/simple-java-mail/releases/tag/9.0.0