Error 4000 when doing .Send(False) in Lotuscript

We have an agent that is kicked off through a WebQuerySave event on a form. This agent creates a mail message and then sends it out to the users who are in the SendTo field. The problem is that sometimes this agent runs corrently but most of the time we look in the log and we have this error message.

Error 4000: Notes error: You do not have a mail file/server specified. Use File Mobile Edit Current Location… to set them.

This is on a server and is being kicked off by the server. The error makes no sense because the agent is being run on the web and is running on the server. We do have the people who use this application log in but even with a mail database set in their person document we still get this error.

We didn’t have this problem until we moved to R6. Can someone please help. This has killed our site for the past 3 months.

Thank you in advance.

Subject: Error 4000 when doing .Send(False) in Lotuscript

I have recently had the same problem,you will probably find that the name and address book is damaged. Replicate a new NAB onto the server.

Subject: Check the Notes Network Ports on the Server doc

I had the same problem. All of a sudden my background agents could not use the doc.send method. We had been running ND6.0.2CF2 for 5 months, then one day errors started. I tried all the suggestions from this thread and in this forum.

The problem turned out to be having the wrong IP address on the “Ports” >> “Notes Network Ports” tab of the server document. If your company has a DNS then I don’t recommend using an IP address here, but many of my clients don’t have reliable DNS so we use the IP address. This was a single server environment, otherwise I’m sure this incorrect IP address issue would have been exposed sooner.

Subject: Solution: Server mail agents do not work

Simply recycle your server.Background: one has to restart a Domino server every 90 days at least, otherwhise it will forget its own name. To verify config, type at the server console:

sh conf mailserver

The server has “forgotten” its own name if you get the response:

Invalid value for command option

HTH

Patrick

Subject: Go to your Server document in the NAB…

On the first tab, expand the section for Server Location Information. In the bottom right hand corner fill out the Mail server field with the Server’s name…

Servers

Mail server:

YourServer/YourOrg

Passthru server:

InterNotes server:

Subject: RE: Go to your Server document in the NAB…

That information is filled out how you have listed it. We already had it filled in. Any other suggestions?

Thank you.