简体   繁体   English

如何使用Java API从Lotus Notes文档获取精确邮件地址?

[英]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. 我正在使用document.getItemValueString(“INetSendTo”)来获取收件人确切邮件地址的邮件地址。 But some of the mail document I am getting null value. 但是一些邮件文件我得到了空值。 In any other field the email address will be stored? 在任何其他字段中,电子邮件地址将被存储?

Email addresses are always stored in the From, SendTo, CopyTo, BlindCopyTo fields. 电子邮件地址始终存储在From,SendTo,CopyTo,BlindCopyTo字段中。

With certain configurations of the server the corresponding internet email adresses for internal addresses are stored in the INetFrom, INetSendTo, INetCopyTo and INetBlindCopyTo fields. 利用服务器的某些配置,内部地址的相应因特网电子邮件地址存储在INetFrom,INetSendTo,INetCopyTo和INetBlindCopyTo字段中。

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. 根据SMTP RFC,即使RFC822中的所有标头(To,Cc,Bcc)丢失或为空,也要将消息传递给RFC821中指定的RCPT TO命令字符串中列出的收件人。 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. Domino有一个配置选项,可以为任何RFC822标头中未列出的RCPT TO收件人创建BlindCopyTo项,但您不能认为在收到邮件时已启用此选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM