New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bounce address #25
Bounce address #25
Conversation
Hi @kpmeen, Thank you for your contribution. Would you mind signing our CLA? http://www.typesafe.com/contribute/cla Thanks! |
@@ -182,6 +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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use data.bounceAddress.foreach(email.setBounceAddress)
to stay consistent with the rest of the code ?
Could you do a rebase to avoid the merge commit 426a734 ? |
Thanks for swift feedback! Updated and pushed :-) |
lgtm |
Yep 👍 |
Great work, thanks again! |
@Mogztter Could it be that for adding the bounce address we also could run into encoding problems like #28? Shouldn't |
AFAIK there's only one method to set the bounce address: This means that you are not supposed to define a name (just an email
|
Added support for setting a custom bounce address as specified in commons mail (here: http://commons.apache.org/proper/commons-email/userguide.html#Handling_Bounced_Messages).