title: Heroku not delivering email through smtp
body: <p>I have a server running on heroku and im trying to send emails through my app but I get an error saying smtp.googlemail.com failed, on localhost it works but on heroku doesn't, anyone encountered this error before?</p>
  <pre class="lang-kotlin prettyprint-override"><code>   private fun sendEmail(destEmail: String, htmlMessage: String, subject: String) {
          val email = HtmlEmail()
          email.hostName = host
          email.setSmtpPort(hostPort)
          email.setAuthenticator(DefaultAuthenticator(hostSender, hostPassword))
          email.isSSLOnConnect = true
          email.setFrom(hostSender, &quot;Safe&amp;Sound&quot;)
          email.subject = subject
          email.setHtmlMsg(htmlMessage)
          email.addTo(destEmail)
          email.send()
      }
  </code></pre>