InternetAddress.getName

Gets the display name of the #InternetAddress.

class InternetAddress
string
getName
()

Return Value

Type: string

the name of the mailbox or group in a form suitable for display if available or null otherwise. If the name is available, the returned string will be in UTF-8.