mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Document SMTP timeout settings
Closes gh-8213
This commit is contained in:
parent
008aef6142
commit
570b0593a6
@ -4702,6 +4702,16 @@ namespace, see the
|
||||
{sc-spring-boot-autoconfigure}/mail/MailProperties.{sc-ext}[`MailProperties`] for more
|
||||
details.
|
||||
|
||||
In particular, certain default timeout values are infinite and you may want to change that
|
||||
to avoid having a thread blocked by an unresponsive mail server:
|
||||
|
||||
[source,properties,indent=0]
|
||||
----
|
||||
spring.mail.properties.mail.smtp.connecttimeout=5000
|
||||
spring.mail.properties.mail.smtp.timeout=3000
|
||||
spring.mail.properties.mail.smtp.writetimeout=5000
|
||||
----
|
||||
|
||||
|
||||
|
||||
[[boot-features-jta]]
|
||||
|
Loading…
Reference in New Issue
Block a user