Skip to content

Setup

Repository

Kotlinmailer is available on Maven Central.

repositories {
    mavenCentral()
}

Dependencies

Kotlin DSL

dependencies {
    implementation("at.quickme.kotlinmailer:MODULE:VERSION")
}

Groovy DSL

dependencies {
    implementation 'at.quickme.kotlinmailer:MODULE:VERSION'
}

Replace:

Modules

  • core (required)
  • 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
}