MailAddressTypeOps

final implicit class MailAddressTypeOps(mat: MailAddress.type)
class Object
trait Matchable
class Any

Value members

Concrete methods

def parse(str: String): Either[String, MailAddress]
def parseAddressAndName(name: Option[String], address: String): Either[String, MailAddress]

Parses an email address from two parts.

Parses an email address from two parts.

def parseAddressAndNameValidated(name: Option[String], address: String): ValidatedNec[AddressException, MailAddress]

Parses an email address from two parts returning a cats ValidatedNec with AddressException as the error in case of malformed address.

Parses an email address from two parts returning a cats ValidatedNec with AddressException as the error in case of malformed address.

def parseMultiple(str: String): Either[String, List[MailAddress]]

Reads a comma-separated list of e-mail addresses.

Reads a comma-separated list of e-mail addresses.

def parseMultipleUnsafe(str: String): List[MailAddress]

Reads a comma-separated list of e-mail addresses, throwing exceptions if something fails.

Reads a comma-separated list of e-mail addresses, throwing exceptions if something fails.

def parseMultipleValidated(str: String): ValidatedNec[AddressException, List[MailAddress]]

Reads a comma-separated list of e-mail addresses, returning a cats ValidatedNec with AddressException as the error in case of malformed addresses.

Reads a comma-separated list of e-mail addresses, returning a cats ValidatedNec with AddressException as the error in case of malformed addresses.

def parseUnsafe(str: String): MailAddress
def parseValidated(str: String): ValidatedNec[AddressException, MailAddress]

Parses an email address returning a cats ValidatedNec with AddressException as the error in case of malformed address.

Parses an email address returning a cats ValidatedNec with AddressException as the error in case of malformed address.