Address represents a single mail address. An address such as "Barry Gibbs bg@example.com" is represented as Address{Name: "Barry Gibbs", Address: "bg@example.com"}.

Hierarchy

  • Address

Methods

Properties

Methods

  • String formats the address as a valid RFC 5322 address. If the address's name contains non-ASCII characters the name will be rendered according to RFC 2047.

    Returns string

Properties

address: string
name: string

Generated using TypeDoc