39. Sending Email - docs.spring.io
docs.spring.io › spring-boot › docsIn 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, as shown in the following example: spring.mail.properties.mail.smtp.connectiontimeout =5000 spring.mail.properties.mail.smtp.timeout =3000 spring.mail.properties.mail.smtp.writetimeout =5000
Mail Support - Spring
docs.spring.io › reference › htmlMail-sending Channel Adapter. Spring Integration provides support for outbound email with the MailSendingMessageHandler . It delegates to a configured instance of Spring’s JavaMailSender, as the following example shows: MailSendingMessageHandler has various mapping strategies that use Spring’s MailMessage abstraction.