-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
MailSender doesn't correctly set JavaMail properties for SMTPS connections #111
Comments
Indeed, quoting javaee:
I agree, these properties will need to come from the |
Now that I think about it, why don't we scrap the per-property interface and instead add a single |
I like the flexibility it gives me in case the property is completely different per transport strategy. Of course this will never happen with this decades old specification, so it is kind of moot. However, I like this design, it's clear enough (and I've already updated it). |
Cool, I'm pretty indifferent either way |
Actually, this was rather tricky, since the transport strategy is an optional parameter in favor of a preconfigured provided Session object. In one type of scenario an exception was in order, in a second skipping defaults and in a third skipping properties logging they were assumed to be preconfigured. |
…rt Strategy while also handle various scenario's where Transport Strategy was not provided
Released as 5.0.0.rc1-SNAPSHOT. Add OSS' snapshots repo to find it in Maven. |
Several of the configuration methods in
MailSender
incorrectly set JavaMail properties under themail.smtp
prefix whensmtps
mail transport (TransportStrategy.SMTP_SSL
) is used. I'm pretty sure themail.smtps
prefix should be used instead.Examples: [1] [2] [3] [4]
The cleanest fix, I think, is to implement additional abstract property name getters under the
TransportStrategy
enum.The text was updated successfully, but these errors were encountered: