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:
-
VERSION
with the version you wish to use (you can find the latest version on github) -
MODULE
with the names of the following modules:
Modules¶
simplekotlinmail-core
(required)simplekotlinmail-client
if you want to send emailssimplekotlinmail-server
if you want to receive emailssimplekotlinmail-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
}