@@ -33,6 +33,7 @@ <h1>Simple Java Mail Features</h1>
33
33
< li > < a simplePageScroll href ="#section-custom-properties "> Setting custom properties on the internal Session</ a > </ li >
34
34
< li > < a simplePageScroll href ="#section-session-access "> Direct access to the internal Session</ a > </ li >
35
35
< li > < a simplePageScroll href ="#section-dkim "> Signing emails with DKIM</ a > </ li >
36
+ < li > < a simplePageScroll href ="#section-return-receipt "> Configure delivery / read receipt</ a > </ li >
36
37
< li > < a simplePageScroll href ="#section-email-validation "> Validating Email Addresses</ a > </ li >
37
38
< li > < a simplePageScroll href ="#section-converting "> Converting between email formats</ a > </ li >
38
39
< li > < a simplePageScroll href ="#section-proxy "> Send using a proxy</ a > </ li >
@@ -435,6 +436,34 @@ <h2>Signing emails with DKIM</h2>
435
436
</ section >
436
437
437
438
439
+ < a href ="#section-dkim " id ="section-return-receipt " class ="section-link h2 "> §</ a >
440
+ < h2 > Configure delivery / read receipt</ h2 >
441
+
442
+ < section >
443
+ < div class ="view ">
444
+ < p >
445
+ For servers and clients that support it (mostly Outlook at offices), Simple Java Mail has built in support for
446
+ < a href ="https://www.chilkatsoft.com/p/p_313.asp "> 'delivery receipt' and 'read receipt'</ a > , which is configured
447
+ through the headers < code > Return-Receipt-To</ code > and < code > Disposition-Notification-To</ code > respectively.
448
+ </ p >
449
+ </ div >
450
+
451
+ < div class ="side ">
452
+ < pre > < code > Email email = new Email();
453
+ email.setDispositionNotificationTo(new Recipient("name", "
[email protected] "));
454
+ email.setReturnReceiptTo(new Recipient("name", "
[email protected] "));
455
+
456
+ // or:
457
+ Email email = new EmailBuilder()
458
+ (..)
459
+ .withDispositionNotificationTo("
[email protected] ")
460
+ .withReturnReceiptTo("name", "
[email protected] ")
461
+ .build();
462
+ </ code > </ pre >
463
+ </ div >
464
+ </ section >
465
+
466
+
438
467
< a href ="#section-email-validation " id ="section-email-validation " class ="section-link h2 "> §</ a >
439
468
< h2 > Validating Email Addresses</ h2 >
440
469
0 commit comments