[pmwiki-users] Mail support form - what to use MailForm or Forms?
editor at fast.st
Mon Aug 7 14:33:53 CDT 2006
I would be very interested in having this added to the FAST Data
recipe. Perhaps you could add a few lines to that recipe to
accomplish it--as it already is designed to be a flexible extension to
the regular forms markup.
My thought would be to simply add a hidden field to indicate it is to
be mailed out--and then a corresponding "case" which does that. (I'm
already thinking the recipe should be redesigned to put the data save
section within the "action" case, so it only posts fields listed up to
that point--much cleaner). By simply adding a different hidden field
(emailthis) it could email the same data string to your email address.
Thus, the same form data could be emailed or saved and countless
configurations in between.
Of course, a separate action could be set up for emails, but I like
the flexibility of being able to do both.
If you don't have time to do this Pm, I'd be happy to take a swing at
it if you could recommend a sample recipe or two to look at as a model
for sending emails in a recipe.
On 8/2/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Wed, Aug 02, 2006 at 07:04:29PM +0200, Clemens Gruber wrote:
> > Hello,
> > I like to built a mail support form on a wiki page. It should be a
> > "normal" mailform, like realized in MailForm,
> > http://pmwiki.org/wiki/Cookbook/MailForm but with two or three
> > additional text inputs like matriculation number.
> > How can I make this? I think it's not so good to code this extansions
> > hard in mailform.php, cause its not really flexible. On the other hand
> > how can I customize PmWiki forms http://pmwiki.org/wiki/Cookbook/Forms
> > to send the data in the form as mail to a mail address (but _not_ with
> > (:input form "mailto:" :) ).
> I think I'd like to come up with a standard recipe that can take
> input forms using the built-in markup and send the resulting data
> to a mail address. This could easily supercede the existing
> MailForm recipe, but be more flexible.
> Maybe I'll write that this evening if I get a chance. :-)
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
More information about the pmwiki-users