Verification of email recipients

Hi all,

I’m working on a java application through which users can send mails. The mails will be created in the user’s maildatabase and placed in the sent view. The users can write anything in the send to field (like jack@domain.com or jack).

If the recipient cannot be evaluated by the Domino server an error is thrown (i.e. error 4295: Unable to send mail, multiple matches found in Name & Address Book(s) or error 4294: Unable to send mail, no match found in Name & Address Book(s)). However, if there are multiple recipients and just one can be evaluated to a valid account, no error is thrown even if one or more of the other recipients cannot be evaluated to a valid account. This simply results in the mail being sent to the recipients who can be evaluated to a valid account, but the mail is not sent to those who cannot be evaluated to a valid account. The big problem is that the user sending the mail is not informed that the mail was not sent to all intended recipients.

My question is simple: how can I make sure that the user sending the mail is informed if any of the recipinet cannot be evaluated to a valid account?

The java application communicates with the Domino server through CORBA.

Thanks in advance

Mads

This question has also been posted in the Domino R5 forum (http://www-10.lotus.com/ldd/46dom.nsf/DateAllThreadedweb/1c9fbcfd27a0ab2b852570040027a4d6?OpenDocument)

Subject: ($Users)

I don’t know for sure if this will help, but you might want to consider checking each value against the ($Users) view of the NAB.

The ($Users) view indexes people by full name, abbreviated name, common name, last name, email address, @Soundex, and all aliases. If your address string can be found there, Domino can resolve it.

Subject: RE: ($Users)

Hi John,

I’ve just taken a look on the ($Users) view and that surely looks promising, thanks for your feedback.

Mads