Skip to content
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

Bug: when using dispositionNotificationTo or returnReceiptTo mode, when the corresponding emails are not filled, it fails even though it should fall back to replyTo or From #450

Closed
bbottema opened this issue Mar 7, 2023 · 1 comment

Comments

@bbottema
Copy link
Owner

bbottema commented Mar 7, 2023

Disposition-Notification-To and Return-Receipt-To can be turned on and optionally filled specifically with an address in Simple Java Mail. But when left empty, the Reply-To should be used if provided, or else even just the From address. Now it fails on the validation step, when sending emails.

bbottema added a commit that referenced this issue Mar 7, 2023
…sed but the email for it was left empty. Idem for returnReceiptTo. Instead, allow fall-back to replyTo or From (which is already in place, but would never trigger because of the validation step)
@bbottema bbottema added this to the 8.0.0 milestone Mar 8, 2023
@bbottema
Copy link
Owner Author

bbottema commented Mar 8, 2023

This is solved in 8.0.0, when the defaults/overrides are applied when sending the email (or when forced to build with those using emailBuilder.buildApplyingDefaultsAndOverrides()).

@bbottema bbottema closed this as completed Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant