Package-level declarations

Types

Link copied to clipboard
sealed interface JmapAuth

Authentication for JMAP requests.

Link copied to clipboard
class JmapConfig(val sessionUrl: String, val auth: JmapAuth, val httpClient: HttpClient? = null, val identityId: String? = null)

Settings of a JmapMailer.

Link copied to clipboard
class JmapException(message: String, val type: String? = null, val httpStatus: Int? = null, cause: Throwable? = null) : MailException

A JMAP failure. type is the JMAP error type, e.g. forbiddenFrom or urn:ietf:params:jmap:error:limit.

Link copied to clipboard
class JmapMailer(val config: JmapConfig) : Mailer

Sends emails via JMAP (RFC 8620, RFC 8621): the rendered message is uploaded, imported into the Drafts mailbox and submitted with EmailSubmission/set, which moves it to the Sent mailbox.

Link copied to clipboard
class JmapMailerBuilder(var sessionUrl: String)

Builder for JmapMailer, see jmapMailer.

Functions

Link copied to clipboard
inline fun jmapMailer(sessionUrl: String, builder: JmapMailerBuilder.() -> Unit): JmapMailer

Create a JmapMailer and register it at MailerManager.