Skip to content

Commit

Permalink
clarified feature description of the deliver/read return notifications (
Browse files Browse the repository at this point in the history
  • Loading branch information
bbottema committed Aug 20, 2017
1 parent 1ef6ed9 commit 264a3c6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/webapp/dist/app.bundle.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions src/main/webapp/src/app/components/features/features.html
Original file line number Diff line number Diff line change
Expand Up @@ -446,16 +446,26 @@ <h2>Configure delivery / read receipt</h2>
<a href="https://www.chilkatsoft.com/p/p_313.asp">'delivery receipt' and 'read receipt'</a>, which is configured
through the headers <code>Return-Receipt-To</code> and <code>Disposition-Notification-To</code> respectively.
</p>
<p>
You can explicitly define the email address to return the receipts to or else Simple Java Mail will default
to the <em>replyTo</em> address if available or else the <em>fromAddress</em>.
</p>
</div>

<div class="side">
<pre><code>Email email = new Email();
email.setUseDispositionNotificationTo();
email.setUseReturnReceiptTo();
// or:
email.setDispositionNotificationTo(new Recipient("name", "[email protected]"));
email.setReturnReceiptTo(new Recipient("name", "[email protected]"));

// or:
Email email = new EmailBuilder()
(..)
.withDispositionNotificationTo()
.withReturnReceiptTo()
// or:
.withDispositionNotificationTo("[email protected]")
.withReturnReceiptTo("name", "[email protected]")
.build();
Expand Down

0 comments on commit 264a3c6

Please sign in to comment.