Kotlinmailer Modules
Dependencies
Kotlinmailer modules are available from Maven Central repository. To use them you have to add appropriate dependency into your repositories mapping.
The Maven Central repository is enabled by default for Maven users.
Base Modules
Kotlinmailer is split into multiple modules so that you can select only those dependencies you need and thereby eliminate unnecessary peer dependencies. The core module is required for all other modules to work.
core(required) the email model, builder DSL and MIME renderer.smtpto send emails via SMTP. You can find more information here.jmapto send emails via JMAP. It needs a Ktor client engine.htmlif you want to use kotlinx.html inside your email builders. You can find more information here.
Module | Platforms |
|---|---|
| JVM, JS, Wasm, macOS, iOS, Linux, Windows |
| JVM (incl. Android), JS (Node.js only), macOS, iOS, Linux and Windows (without TLS) |
In Kotlin Multiplatform projects, add the dependencies to commonMain. Alternatively, if you use gradle version catalogues you can use the following:
And then in your dependencies block: