-
-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clarified feature description of the deliver/read return notifications (
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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(); | ||
|