Anand Murugan
Anand Murugan

Reputation: 847

How to get the Exact Mail Address from Lotus Notes Document Using Java API?

I am using document.getItemValueString("INetSendTo") to get the mail address of recipient exact mail address. But some of the mail document I am getting null value. In any other field the email address will be stored?

Upvotes: 0

Views: 1848

Answers (2)

Richard Schwartz
Richard Schwartz

Reputation: 14628

Actually, you cannot rely on the address fields. According to the SMTP RFCs, messages are to be delivered to the recipients listed in the RCPT TO command string as specified in RFC821, even if all of the headers (To, Cc, Bcc) in the RFC822 messsage are missing or empty. There is a configuration option for Domino to create a BlindCopyTo item for any RCPT TO recipient who was not listed in any of the RFC822 headers, but you cannot assume that this option was enabled at the time the message was received.

Upvotes: 0

Per Henrik Lausten
Per Henrik Lausten

Reputation: 21709

Email addresses are always stored in the From, SendTo, CopyTo, BlindCopyTo fields.

With certain configurations of the server the corresponding internet email adresses for internal addresses are stored in the INetFrom, INetSendTo, INetCopyTo and INetBlindCopyTo fields.

Upvotes: 2

Related Questions