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

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

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

import skinny.SkinnyEnv

object SkinnyMailerConfig {

  def default: SkinnyMailerConfig = SkinnyMailerConfig()

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

}

case class SkinnyMailerConfig(
  override val debug: Boolean,
  override val mimeVersion: String,
  override val charset: String,
  override val contentType: String,
  override val defaultFrom: Option[String],
  override val transportProtocol: String,
  override val smtp: SkinnyMailerSmtpConfigApi
)
    extends SkinnyMailerConfigApi {

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy