Addr821 in NotesName class returns empty string if the notes mail address does not contain @Domain at the end of the address. However it does not work if @Domain exists. How can I judge the Mail address if it is a Notes mail or an E-mail address?
Notes : Addr821 in NotesName class
80 Views Asked by AudioBubble At
2
There are 2 best solutions below
2

The purpose of the Addr821 method in the NotesName class is to take any email address that looks like this:
"Richard's Fake Address" <[email protected]>
And return this:
[email protected]
It is not designed to distinguish between valid Notes addresses and valid RFC821 addresses. It's technically possible, in fact, for the same string to be both a valid Notes address and a valid RFC821 address.
Have you checked the NotesName.isHierarchical property ? https://www.ibm.com/support/knowledgecenter/en/SSVRGU_9.0.1/basic/H_ISHIERARCHICAL_PROPERTY.html