Dear All,
I cannot send email by agent which is set on event ‘After new email has arrived’ but can be run manually if it is set one event ‘Action menu selection’ Belows are my program and error message found in Misc. Log. Please help!
Program:
Sub Initialize
Dim session As New notessession
Dim db As notesdatabase
Dim lsa_sendto( 1 To 20 ) As String
Dim AlertDoc As NotesDocument
Dim Alertrtitem As NotesRichTextItem
lsa_sendto(1) = "Peter"
Set db=session.currentdatabase
Set AlertDoc = New NotesDocument( db )
AlertDoc.form = "Message"
Set Alertrtitem = New NotesRichTextItem( AlertDoc, "Body" )
Call Alertrtitem.AppendText("TEST")
AlertDoc.Subject = "Subject"
Call AlertDoc.ReplaceItemValue("SendTo", lsa_sendto)
Call AlertDoc.Send( False)
End Sub
Error Message found in Misc. Log:
08/09/2009 12:49:11 PM Error connecting to server Server/Domain: The remote server is not a known TCP/IP host.
08/09/2009 12:49:14 PM Error connecting to server Server/Domain: The remote server is not a known TCP/IP host.
08/09/2009 12:49:16 PM Error connecting to server Server/Domain: The remote server is not a known TCP/IP host.
08/09/2009 12:49:16 PM AMgr: Agent (‘test’ in ‘mail\xxx.nsf’) error message: Notes error: The remote server is not a known TCP/IP host.
P.S. It worked on R5.
P.S. It works when agent is triggered by Server Reboot. But it doesn’t work when is triggered by new email has arrived.
Subject: Wrong type of agent
Setting an agent to run “after mail has arrived” means that it runs on mail you receive in your inbox. Change the setting to something else.
Subject: Sorry but Thx!
I think we always have something need to be done just after new mail have been received. We have to fix it, not to avoid it.
Subject: Fixed! and this is for your Reference
Found that the entry in host file should bexxx.xxx.xxx.xxx Server
instead of
xxx.xxx.xxx.xxx Server/Domino
Thanks.
Subject: Trigger controls when the agent runs
The trigger (after mail arrives) controls when the agent is running. Since the original poster is getting errors during the agent run, the agent has been triggered and is running, but is getting errors at run time.It is a routing error. The error he is getting is an error that typically is received the configuration of the mail server is not complete/correct in the server document, or some other error that does not allow delivery to be successful
Subject: This error indicates…
This is a routing error. This error indicates that mailing cannot suceed for some reason. When you run from the menu, you run the agent on the client and it does not use server configuration for routing.
This error commonly indicates a configuration problem on the server (in the server document).
I also noticed that you don’t use a fully canonical name for the person to whom you are mailing. Try using a fully canonical name instead.