EmailAddress

class EmailAddress(address: String, name: String? = null)(source)

A mailbox, consisting of an address (local@domain) and an optional display name.

Internationalized addresses (RFC 6532) are allowed; sending them over SMTP requires a server that supports SMTPUTF8.

Constructors

Link copied to clipboard
constructor(address: String, name: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The local@domain part.

Link copied to clipboard

Everything after the last @.

Link copied to clipboard

True if the address contains non-ASCII characters and therefore needs SMTPUTF8.

Link copied to clipboard

Everything before the last @.

Link copied to clipboard
val name: String?

The optional display name.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Human readable form, e.g. John Doe <john@example.com>; not encoded for use in headers.