title: How to install and configure play-mailer, for playframework 2.5.x
body: <p>I am trying to install the play-mailer plugin inside playframework 2.5.x but I cannot seem to install it. I have read the documentation on the readMe, but can't seem to make heads or tails of it. </p>
  
  <p>Here are some sample code from the documentation</p>
  
  <p>To get started you add play-mailer and play-mailer-guice as a dependency in SBT:</p>
  
  <pre><code>libraryDependencies += "com.typesafe.play" %% "play-mailer" % "6.0.1"
  libraryDependencies += "com.typesafe.play" %% "play-mailer-guice" % "6.0.1"
  
  play.mailer {
    host = "example.com" // (mandatory)
    port = 25 // (defaults to 25)
    ssl = no // (defaults to no)
    tls = no // (defaults to no)
    tlsRequired = no // (defaults to no)
    user = null // (optional)
    password = null // (optional)
    debug = no // (defaults to no, to take effect you also need to set the log level to "DEBUG" for the application logger)
    timeout = null // (defaults to 60s in milliseconds)
    connectiontimeout = null // (defaults to 60s in milliseconds)
    mock = no // (defaults to no, will only log all the email properties instead of sending an email)
  }
  </code></pre>
  
  <p>The rest of the documentation can be found here
  <a href="https://github.com/playframework/play-mailer" rel="nofollow noreferrer">https://github.com/playframework/play-mailer</a></p>
  
  <p>Can someone show me how to install and configure this plugin </p>
  
  <p>When i try to install it using the sbt command I get the following errors</p>
  
  <pre><code>[info] Set current project to play-mailer-root (in build file:/C:/Users/Alexis/Downloads/myscript/play-mailer-root/)
  </code></pre>
  
  <p>and when I click run here is the output I get</p>
  
  <pre><code>[warn] Credentials file C:\Users\Alexis\.bintray\.credentials does not exist
  [trace] Stack trace suppressed: run last play-mailer-root/compile:backgroundRun for the full output.
  [error] (play-mailer-root/compile:backgroundRun) No main class detected.
  </code></pre>
  
  <p>Thanks </p>