Das Notes Forum
Domino 9 und frühere Versionen => ND6: Administration & Userprobleme => Thema gestartet von: CLI_Andreas_Schmidt am 30.08.05 - 14:04:08
-
hi @all,
stehe vor einem kleinen Problem und sehe den Fehler nicht. Habe einen Agenten, der in Notes Läuft und im Web nicht. Er soll ein Email versenden. Nachdem @Command([Filesave]) wird der Agent mit @Command([Agentrun];" Agent ") gestartet. Dann bekomme ich die Meldung:"Kann kein Pfad zum Server finden" ??? Der Agent läuft auf set db = s.currentdatabase.
???
code
Dim s As New NotesSession
Dim db As NotesDatabse
Set db = s.CurrentDatabase
Dim doc As NotesDocument
Dim maildoc As NotesDocument
Dim mdoc As NotesDocument
Dim v As NotesView
Set v = db.GetView("dbkonf")
Set maildoc = db.CreateDocument
Set doc = s.DocumentContext
Set mdoc = v.GetFirstDocument
Dim bodyheader As Variant
bodyheader = "Author: " + doc.request_author(0) + Chr(13) + _
"Date: " + Cstr(doc.request_date(0)) + Chr(13) + _
"Notify by: " + doc.request_notify(0) + Chr(13) + Chr(13) + doc.request_content
maildoc.Form = "Memo"
maildoc.SendTo = mdoc.konfig_email(0)
maildoc.Subject = "[Request]: " ' + doc.request_subject(0)
maildoc.Body = bodyheader
Call maildoc.Send( True )
-
Ev. dieses Problem (http://www-10.lotus.com/ldd/46dom.nsf/7d6a87824e2f09768525655b0050f2f2/e19b1c65c84b170885256935004e453d?OpenDocument)?
Oder dieses (http://www-10.lotus.com/ldd/46dom.nsf/7d6a87824e2f09768525655b0050f2f2/c73b77a707cb66c9852569270060d606?OpenDocument)?:
The server uses the entry in the Mail Server field of the Server document as its home server. This
defaults to the server itself. If the network address of the server is incorrect, or the server cannot
resolve the host name in the network address field, it is unable to make a connection to send mail, and
an error occurs.
-
Warum benutzt du @Command([Agentrun];" Agent ") und nicht das wesentlich gebräuchlichere ToolsRunMacro?