|
Encryption must know who you're sending to and also must be able to find their public key (in the Person document in the address book). This can fail either because a) the recipient's Person information is not available in the context where the code is running, or b) because the name is not recognized sufficiently well to find the person record.
If the agent works with a hardcoded name and fails with a calculated name in the same context, reason b is more likely. If the calculated recipient name is an Internet address rather than a Notes username, for instance, the Send method probably can't match it up with a Notes username. In that case, you will probably need to program a function yourself to find the corresponding Person record and use it to translate the address into a fully qualified Notes username.
Do you have comments on this Ask the Expert question and response? Let us know.
|