Email's built in like many of the other service types a server can depend on.
Add a setting as follows:
object Server {
//...
val email = setting(name = "email", default = EmailSettings())
//...
}
email().send(
subject = "Hello world",
to = listOf("joseph@lightningkite.com"),
html = "<h1>Hello world!</h1>"
)