Skip to content

Setup

Repository

SimpleKotlinMail is available on Maven Central.

repositories {
    mavenCentral()
}

Dependencies

Kotlin DSL

dependencies {
    implementation("net.axay:MODULE:VERSION")
}

or Groovy DSL

dependencies {
    implementation 'net.axay:MODULE:VERSION'
}

Replace:

Modules

  • simplekotlinmail-core (required)
  • simplekotlinmail-client if you want to send emails
  • simplekotlinmail-server if you want to receive emails
  • simplekotlinmail-html if you want to use kotlinx.html inside your email builders

JVM Version

To be able to use the inline functions of the API, you have to configure the JVM version (if you have not done that already).

tasks.withType<KotlinCompile> {
    kotlinOptions.jvmTarget = jvmVersionString // <- e.g. 11
}