Forum OpenACS Development: Re: Mail Tracking

Collapse
10: Re: Mail Tracking (response to 1)
Posted by Nima Mazloumi on
<h3>Form 2 Mail</h3>

This package works as an include and is a singleton. A good documentation is available.

The admin interface allows the definition a form. The strange thing is that the senders email is required as well. Only the fields subject and body are provided. If extra form fields are needed then a TCL file with a special ad_form call is required. To use the form you add

< include src="/packages/form-to-mail/www/form" form_name="Test Form" >
to your ADP-page. The include statement can also have an optional parameter extra_form_file which references a the above mentioned TCL file. No relative reference seems to be supported.

The package has no support for user driven form definition. A solution would be to either define form field types and corresponding display types that can be added dynamically or using assessment right away. Another approach might be using dynamic types. Any ideas?

Form to Mail uses ns_sendmail to send out the form. We need to fix that to be able to integrate with acs-mail-lite.

In oder to try out the package you need to fix form.tcl (quick hack):

#set action "${closest_mount}form-proc"
set action "/ftm/form-proc"