EmailUtils

object EmailUtils

Utility object for email address validation and HTML email body generation.

Functions

Link copied to clipboard
fun email(cssFilename: String = "css/email.css", block: BODY.() -> Unit): String

Builds an HTML email string with an embedded CSS stylesheet and the given body content.

Link copied to clipboard

Returns true if this String does not match a valid email address pattern.

Link copied to clipboard

Returns true if this String matches a valid email address pattern.