Skip to content

Commit 79ff4fb

Browse files
committed
added feature description of the deliver/read return notifications (#93, #95)
1 parent 94c0997 commit 79ff4fb

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/main/webapp/src/app/components/features/features.html

+29
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ <h1>Simple Java Mail Features</h1>
3333
<li><a simplePageScroll href="#section-custom-properties">Setting custom properties on the internal Session</a></li>
3434
<li><a simplePageScroll href="#section-session-access">Direct access to the internal Session</a></li>
3535
<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>
3637
<li><a simplePageScroll href="#section-email-validation">Validating Email Addresses</a></li>
3738
<li><a simplePageScroll href="#section-converting">Converting between email formats</a></li>
3839
<li><a simplePageScroll href="#section-proxy">Send using a proxy</a></li>
@@ -435,6 +436,34 @@ <h2>Signing emails with DKIM</h2>
435436
</section>
436437

437438

439+
<a href="#section-dkim" id="section-return-receipt" class="section-link h2">&sect;</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+
438467
<a href="#section-email-validation" id="section-email-validation" class="section-link h2">&sect;</a>
439468
<h2>Validating Email Addresses</h2>
440469

0 commit comments

Comments
 (0)