Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 438 Bytes

email.md

File metadata and controls

25 lines (19 loc) · 438 Bytes

Email

Email's built in like many of the other service types a server can depend on.

Declaring the need for an email sender

Add a setting as follows:

object Server {
    //...
    val email = setting(name = "email", default = EmailSettings())
    //...
}

Sending an email

email().send(
    subject = "Hello world",
    to = listOf("joseph@lightningkite.com"),
    html = "<h1>Hello world!</h1>"
)