Package io.micronaut.email
Class Contact
java.lang.Object
io.micronaut.email.Contact
Class representing the person who receives an email.
- Since:
- 1.0.0
- Author:
- Sergio del Amo
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
Contact- Parameters:
- email- Contact's email.
 
- 
Contact- Parameters:
- email- Recipient's email.
- name- Recipient's name.
 
 
- 
- 
Method Details- 
getEmail- Returns:
- Recipient's email.
 
- 
getName- Returns:
- Recipient's name
 
- 
getNameAddressreturns name-addr for a Contact. Given: Contact(email: 'johnsnow@example.com, name: John Snow) When: Contact::getNameAddress() Then: John Snow <johnsnow@example.com> Given: Contact(email: 'johnsnow@example.com, name: null) When: Contact::getNameAddress() Then: <johnsnow@example.com>- Returns:
- An optional name that indicates the name of the recipient that could be displayed to the user of a mail application, and the email address enclosed in angle brackets
- See Also:
 
- 
equals
- 
hashCodepublic int hashCode()
 
-