Skip to content

Commit 570b059

Browse files
committed
Document SMTP timeout settings
Closes gh-8213
1 parent 008aef6 commit 570b059

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

+10
Original file line numberDiff line numberDiff line change
@@ -4702,6 +4702,16 @@ namespace, see the
47024702
{sc-spring-boot-autoconfigure}/mail/MailProperties.{sc-ext}[`MailProperties`] for more
47034703
details.
47044704

4705+
In particular, certain default timeout values are infinite and you may want to change that
4706+
to avoid having a thread blocked by an unresponsive mail server:
4707+
4708+
[source,properties,indent=0]
4709+
----
4710+
spring.mail.properties.mail.smtp.connecttimeout=5000
4711+
spring.mail.properties.mail.smtp.timeout=3000
4712+
spring.mail.properties.mail.smtp.writetimeout=5000
4713+
----
4714+
47054715

47064716

47074717
[[boot-features-jta]]

0 commit comments

Comments
 (0)