Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/org/codemonkey/simplejavamail/Email.java
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ public Builder cc(final String name, final String address) {
* @see Recipient
*/
public Builder cc(final Recipient recipient) {
recipients.add(new Recipient(recipient.getName(), recipient.getAddress(), RecipientType.TO));
recipients.add(new Recipient(recipient.getName(), recipient.getAddress(), RecipientType.CC));
return this;
}

Expand All @@ -435,7 +435,7 @@ public Builder bcc(final String name, final String address) {
* @see Recipient
*/
public Builder bcc(final Recipient recipient) {
recipients.add(new Recipient(recipient.getName(), recipient.getAddress(), RecipientType.TO));
recipients.add(new Recipient(recipient.getName(), recipient.getAddress(), RecipientType.BCC));
return this;
}

Expand Down