Cant send email from web agent

I am having trouble sending an email from a very simple agent invoked on the web (compose doc, set sendto and send). The same agent invoked from the client works correctly.

When I try this agent via the web it fails and on the console it says:

Error connecting to the server <server/mynotesorg>: Remote system no longer responding

The server listed is the server that the code is running on and my only Domino server. It does not matter if I am authenticated or not to the web site.

Any ideas? Thanks

Subject: Cant send email from web agent

Years ago I worked on an applicaztion which we would forward documents on the web. Here is what we did:

Had a button on the form called Forward. JavaScript code:

var f = document.forms[0]

if(f.SendTo.value == “”){

alert("You must provide a Send To in order to forward this document.")

return false

}

if(f.Subject.value == “”){

alert("You must provide a Subject in order to forward this document.")

return false

}

if(f.Dialog.value == “”){

alert("You must provide Dialog in order to forward this document.")

return false

}

f.ButtonForward.click()

Next we had a different button below that which was hidden called “Forward Doc” with an HTML name “ButtonForward”. this was called by the last command line on the forwardDoc javascript.

The code for that button was:

@SetField(“CloseTheWindow”;“Yes”);

@Command([ToolsRunMacro];“(WebForwardDocument)”)

WebFOrwardDocument agent would gather information from current documetn as to Sendto, Subject, Body data, create a temp doc with this info in it and then run a scheduled agent that would process the email on the server based on info in the tempdoc.

Subject: RE: Cant send email from web agent

Thanks Michael. The email needs to be sent right away so this approach will not work for me.