Added SMTP DSN

This commit is contained in:
M66B
2020-09-05 15:52:28 +02:00
parent b1794c6086
commit 532930b710
2 changed files with 11 additions and 0 deletions

View File

@@ -263,6 +263,11 @@ public class EmailService implements AutoCloseable {
properties.put("mail.mime.allowutf8", Boolean.toString(value));
}
// https://tools.ietf.org/html/rfc3461
void setDsnNotify(String what) {
properties.put("mail." + protocol + ".dsn.notify", what);
}
void setListener(StoreListener listener) {
this.listener = listener;
}