Merge branch '1.5.x' into 2.0.x
This commit is contained in:
@@ -104,10 +104,10 @@ content into your application. Rather, pick only the properties that you need.
|
||||
# Email ({sc-spring-boot-autoconfigure}/mail/MailProperties.{sc-ext}[MailProperties])
|
||||
spring.mail.default-encoding=UTF-8 # Default MimeMessage encoding.
|
||||
spring.mail.host= # SMTP server host. For instance, `smtp.example.com`.
|
||||
spring.mail.jndi-name= # Session JNDI name. When set, takes precedence over other mail settings.
|
||||
spring.mail.jndi-name= # Session JNDI name. When set, takes precedence over other Session settings.
|
||||
spring.mail.password= # Login password of the SMTP server.
|
||||
spring.mail.port= # SMTP server port.
|
||||
spring.mail.properties.*= # Additional JavaMail session properties.
|
||||
spring.mail.properties.*= # Additional JavaMail Session properties.
|
||||
spring.mail.protocol=smtp # Protocol used by the SMTP server.
|
||||
spring.mail.test-connection=false # Whether to test that the mail server is available on startup.
|
||||
spring.mail.username= # Login user of the SMTP server.
|
||||
|
||||
@@ -5678,6 +5678,15 @@ following example:
|
||||
spring.mail.properties.mail.smtp.writetimeout=5000
|
||||
----
|
||||
|
||||
It is also possible to configure a `JavaMailSender` with an existing `Session` from JNDI:
|
||||
|
||||
[source,properties,indent=0]
|
||||
----
|
||||
spring.mail.jndi-name=mail/Session
|
||||
----
|
||||
|
||||
When a `jndi-name` is set, it takes precedence over all other Session-related settings.
|
||||
|
||||
|
||||
|
||||
[[boot-features-jta]]
|
||||
|
||||
Reference in New Issue
Block a user