Firstly, I need to say that sending email with 1.2.0.RELEASE works fine
application.properties:
spring.
It looks like it is a regression. I have created #3624 to investigate the issue. Thanks for the sample project!
It looks like there's a regression/behaviour change in Java Mail. The change is in both 1.5.3 and 1.5.4. Your app works with Boot 1.2.0 as it uses Java Mail 1.5.2. It fails with Boot 1.2.5 as it uses Java Mail 1.5.4.
The problem in 1.5.3+ appears to be that the SMTP transport connects on port 465 and GMail expects an SSL handshake. Java Mail incorrectly thinks it's not using SSL so it never initiates the handshake and the connection attempt (eventually) times out. You can convince Java Mail to do the right thing by being explicit about the use of SSL. Add the following to application.properties
:
spring.mail.properties.mail.smtp.ssl.enable = true