Problem with doc.Send and SendTo field

Here’s my situation:

I have a document with a SendTo field that gets its value from a number of other fields in the document, some of which get their values from a profile document. (It’s a long story why I have to make it work like that). All relevant fields are Names fields.

The weird thing is that the Names fields from the Profile Doc have their domain on the end of the addresses, whereas the fields that either compute the address with @V3UserName or are entered by the user do not have the domain added on.

When I use doc.Send, I get delivery failures with “No route found to domain” for all of the people from the profile doc, who do have the domain added on. The others get the email with no problem.

Any ideas?

Thanks

Subject: something else I forgot to mention

The really weird part about it is that if I use formula and @MailSend, it works fine and everyone receives the email. But I need to use LotusScript for some other things that the button does.

Subject: Re: Doc.send & Sendto

If these names are of users in your Notes domain or in a neighboring domain, this suggests something is wrong with the router configuration, but here is a suggestion - this might run slower, but should give good results.

dim nn as new notesname(doc.sendto(0))

doc.sendto = nn.common

doc.send

Subject: forgot to mention

I forgot to mention that when I use @transform and @left to remove everything left of the @ in each member of the list, I then get a “No match found in address book(s)” error.