Notesdocument .send not working

I have several Agents that are not working now for some reason when doing a doc.send. The name in the SendTo field is being set from a NotesName field that has data in it. Like this:

ndoc.SendTo = ndocProfile.EmailAddress

and some like this:

Forall supervisors In ndoc.Supervisor

If supervisors <> “” Then

  Call mailDoc.send(False, supervisors)

End If

End Forall

I get Unable to send mail, user not found in Address Book error.

Any ideas? Do I need to specify Abbreviated name? Canonical should work right? Need to be pointed in right direction.

Thanks.

Conrad

Subject: notesdocument .send not working

the send is looking for the address or addresses in supervisors which is gettings its values from the supervisor field, according to your code. So the value in the sendTo field is irrelevant. Can yo post the complete code?

Subject: RE: notesdocument .send not working

I think we have found something and are going to try it tonight. I will post back if this works letting you know what happened. Thanks for the interest.

Subject: RE: notesdocument .send not working

Apparently our server had been running for too long. We bounced the server last night and things are back to normal. We are running on W2K3, so… We also found a couple of tech notes stating that running over 120 days may cause a problem. Funny how things work out.

Thanks for the help.

Subject: notesdocument .send not working

Hi!

I think your spelling of the email adress is wrong. You can use the “internet style” format firstname.lastname@domain or you can also use the “notes style format” firstname lastname/Domain

Bye

Alexander