This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: Form works. but doesn't save ~Umberto Nongeroson 22.Dec.03 06:32 PM a Web browser Domino Web Access 6.0.1Windows XP
I suspect the WebQuerySave agent is the source of your problem; this is supposed to be a LotusScript agent, not macro. While sending a little email in LotusScript isn't a one-line function, it's not that hard to do.
If you want to execute macro functions when the form is being saved, you can do this more efficiently using a function in a computed for display field on the form, perhaps in conjunction with @If(@IsDocBeingSaved -- execute the formula after validation.
However, the @MailSend function (and the LotusScript equivalent) are tricky to use in web applications in general, because there's the question of whether the server will allow this user (or this non-user, if they're not signed in) to send email.
I suggest that there's probably no need to make the user wait while you send this email, in any case. Why not just use a scheduled server agent instead? Send a newsletter every now and then -- who needs to receive a separate email for every comment entered? You might also think about including the subject in the email subject and the text of the comments in the email body, to save the recipient the trouble of clicking the link each time.