Commit 570b0593 authored by Stephane Nicoll's avatar Stephane Nicoll

Document SMTP timeout settings

Closes gh-8213
parent 008aef61
...@@ -4702,6 +4702,16 @@ namespace, see the ...@@ -4702,6 +4702,16 @@ namespace, see the
{sc-spring-boot-autoconfigure}/mail/MailProperties.{sc-ext}[`MailProperties`] for more {sc-spring-boot-autoconfigure}/mail/MailProperties.{sc-ext}[`MailProperties`] for more
details. 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]] [[boot-features-jta]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment