InternetAddress.getName

string getName()

Gets the display name of the #InternetAddress.

Returns

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.