It's now working as I expected.
At the time of testing I already had a long standing address book entry for "Her" but no user named "Her".
After creating the user "Her" I then ran the tests sending mails to "Her" and "PM:Her" before opening and closing Pmail and ran into the previously described problem. Since then I have closed and opened Pmail and the same tests work OK.
I guess that Pmail needed to be closed to force something to be written to disc so that the function would work.
Bob
<P>It's now working as I expected.</P><P>At the time of testing I already had a long standing address book entry for "Her" but no user named "Her".</P><P>After creating the user "Her" I then ran the tests sending mails to "Her" and "PM:Her" before opening and closing Pmail and ran into the previously described problem. Since then I have closed and opened Pmail and the same tests work OK.</P><P>I guess that Pmail needed to be closed to force something to be written to disc so that the function would work.</P><P>Bob</P>