goog.format.InternationalizedEmailAddress
Instance Methods
expand_more
this.getAddress() → string
string
Get the email address.
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
expand_more
this.getName() → string
string
Get the name associated with the email address.
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
expand_more
this.isValid() → boolean
boolean
Determines if the current object is a valid email address.
Overrides | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
expand_more
this.setAddress( address ) → void
void
Set the email address.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
expand_more
this.setName( name ) → void
void
Set the name associated with the email address.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
expand_more
this.toString() → string
string
Return the address in a standard format:
- remove extra spaces.
- Surround name with quotes if it contains special characters.
Overrides | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
expand_more
this.toStringInternal( specialChars ) → string
string
Instance Properties
expand_more
this.address → string
string
The email address.
Static Functions
expand_more
InternationalizedEmailAddress.isAddressSeparator( ch ) → boolean
boolean
expand_more
InternationalizedEmailAddress.isValidAddrSpec( str ) → boolean
boolean
expand_more
InternationalizedEmailAddress.isValidAddress( str ) → boolean
boolean
expand_more
InternationalizedEmailAddress.isValidDomainPartSpec( str ) → boolean
boolean
expand_more
InternationalizedEmailAddress.isValidLocalPartSpec( str ) → boolean
boolean
expand_more
InternationalizedEmailAddress.parse( addr ) → goog.format.EmailAddress
goog.format.EmailAddress
Parses an email address of the form "name" <address> into an email address.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
expand_more
InternationalizedEmailAddress.parseList( str ) → Array<goog.format.EmailAddress>
Array<goog.format.EmailAddress>
Parses a string containing email addresses of the form "name" <address> into an array of email addresses.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|