title: Spring Boot 1.2.5.RELEASE - Sending E-mail via Gmail SMTP
body: <blockquote>
    <p>Firstly, I need to say that sending email with 1.2.0.RELEASE works fine</p>
  </blockquote>
  
  <p><strong>application.properties:</strong></p>
  
  <pre><code>spring.mail.host = smtp.gmail.com
  spring.mail.username = *****@gmail.com
  spring.mail.password = ****
  spring.mail.properties.mail.smtp.auth = true
  spring.mail.properties.mail.smtp.socketFactory.port = 465
  spring.mail.properties.mail.smtp.socketFactory.class = javax.net.ssl.SSLSocketFactory
  spring.mail.properties.mail.smtp.socketFactory.fallback = false
  </code></pre>
  
  <p><strong>pox.xml</strong></p>
  
  <pre><code>&lt;parent&gt;
       &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
       &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
       &lt;version&gt;1.2.0.RELEASE&lt;/version&gt;
       &lt;relativePath/&gt;
  &lt;/parent&gt;
  </code></pre>
  
  <p>.......</p>
  
  <pre><code>&lt;dependency&gt;
       &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
       &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
       &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
       &lt;artifactId&gt;spring-boot-starter-mail&lt;/artifactId&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p><br></p>
  
  <blockquote>
    <p>After changing parent version to 1.2.5.RELEASE email sending hasn't worked</p>
  </blockquote>
  
  <p><strong>Docs says:</strong>
  <em>If spring.mail.host and the relevant libraries (as defined by spring-boot-starter-mail) are available, a default JavaMailSender is created if none exists.</em></p>
  
  <p><br><strong>So i've added</strong> </p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;javax.mail&lt;/groupId&gt;
      &lt;artifactId&gt;mail&lt;/artifactId&gt;
      &lt;version&gt;1.4.7&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>It hasn't helped and then i've replaced it to</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.sun.mail&lt;/groupId&gt;
      &lt;artifactId&gt;javax.mail&lt;/artifactId&gt;
      &lt;version&gt;1.5.4&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Also i've tried <br><br></p>
  
  <pre><code>spring.mail.host = smtp.gmail.com
  spring.mail.username = *****@gmail.com
  spring.mail.password = ****
  spring.mail.port = 465
  </code></pre>
  
  <p><strong>Result the same.</strong><br><br>
  It's not a problem to create and configure @Bean manually. But I want to use all beauty of Spring Boot.
  <br>
  Please point me to my mistakes.</p>
  
  <p>Thanks in advance</p>