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:
-
VERSIONwith the version you wish to use (you can find the latest version on github) -
MODULEwith the names of the following modules:
Modules¶
simplekotlinmail-core(required)simplekotlinmail-clientif you want to send emailssimplekotlinmail-serverif you want to receive emailssimplekotlinmail-htmlif 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
}