All Downloads are FREE. Search and download functionalities are using the official Maven repository.

skinny.mailer.SkinnyMailerSmtpConfig.scala Maven / Gradle / Ivy

There is a newer version: 2.5.2
Show newest version
package skinny.mailer

import skinny.SkinnyEnv

object SkinnyMailerSmtpConfig {

  def default: SkinnyMailerSmtpConfig = SkinnyMailerSmtpConfig()

  def apply(name: String = "default", env: String = SkinnyEnv.getOrElse("development")): SkinnyMailerSmtpConfig = {
    val (n, e) = (name, env)
    new SkinnyMailerSmtpConfigApi {
      override def name = n
      override def skinnyEnv = e
    }.toCaseClass
  }

}

case class SkinnyMailerSmtpConfig(
  override val host: String,
  override val port: Int,
  override val connectTimeoutMillis: Int,
  override val readTimeoutMillis: Int,
  override val startTLSEnabled: Boolean,
  override val authEnabled: Boolean,
  override val user: Option[String],
  override val password: Option[String])
    extends SkinnyMailerSmtpConfigApi




© 2015 - 2025 Weber Informatics LLC | Privacy Policy