Running agent causes page not found

When I put in the following code in an agent and ran the agent from WQS, I got "page not found" with
https://usdeva001.chicago.na.com/applications/s-z/trmptest.nsf/69be38fe9d5b1ff4862571160076c749?OpenForm&Seq=1

in the http address field.

FIELD SendTo:="Michael Rothschild";
FIELD CopyTo:=@Author;
FIELD Subject:=@If(@IsNewDoc;"New ";"Update To ") + ProjName;
@MailSend(SendTo;  CopyTo;  ""; Subject; ""; ""; [IncludeDoclink]);

The app works fine if I don't run the agent
paynestreetAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

marilyngCommented:
Hi paynestreet,
@Mailsend is unique to the NotesClient..
http://www-128.ibm.com/developerworks/lotus/library/ls-appstoWeb/
They work only in the Notes client interface. There are no browser counterparts to @DialogBox, @Picklist, and @Prompt, for example. And several advanced mail-handling functions are unique to the Notes client, such as @MailSend and @IsDocBeingMailed.

What is it that you're trying to do?

Regards!
paynestreetAuthor Commented:
I want to send an email to notify the admin that a new project has been entered or updated.
Is this doable in LotusScript?
marilyngCommented:
paynestreet,

Yup, look at the mail database in the Memo form, and check the WebQuerySave event, it basically calls wmail agent, which if you check the agent it does a bunch of things ... etc.

So, you can call lotus script agents on the web, but the form, you just submit, and run the notification on the webQuerySave.  :)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.