Skip to content

Commit

Permalink
code consistency change as requested.
Browse files Browse the repository at this point in the history
  • Loading branch information
Knut Petter Meen authored and Knut Petter Meen committed Jan 18, 2015
1 parent cbfe01b commit c6b50ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/play/api/libs/mailer/MailerPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ abstract class CommonsMailer(smtpHost: String, smtpPort: Int,
email.setSubject(data.subject)
email.setFrom(data.from)
data.replyTo.foreach(setAddress(_) { (address, name) => email.addReplyTo(address, name)})
data.bounceAddress.map(email.setBounceAddress)
data.bounceAddress.foreach(email.setBounceAddress)
data.to.foreach(setAddress(_) { (address, name) => email.addTo(address, name)})
data.cc.foreach(setAddress(_) { (address, name) => email.addCc(address, name)})
data.bcc.foreach(setAddress(_) { (address, name) => email.addBcc(address, name)})
Expand Down

0 comments on commit c6b50ae

Please sign in to comment.