I recently did almost exactly this. At submission, form data is used to
generate a file, and the file is provided as an attachment to the resulting
email that is sent to the form submitter.
In addition, I figured out how to provide the file as an immediate direct
download (via a button) on the landing page that's rendered after the form
is submitted. And the file never lives on the filesystem at all - it's just
transient. I'm dealing with a small file, so that's fine, but if it were a
huge file I'd probably have gone with a different approach (using tempfile
maybe, or stashing it someplace and having it expire after a certain time or
something).
If I can get some free time today I'll make a quick write-up of the pieces
necessary to do this, and provide the few bits of tricky implementation that
made it work.
-hoss
On Tue, Oct 27, 2009 at 08:57, Lars Löwenadler <
lars.lowenadler@fcc.chalmers.se> wrote:
>
> Hi,
>
> I'm actually about to do something very similar to the OP.
>
> 1) Customer enters data in a PFG form.
> 2) We receive the data and PFG Save Adapter saves it for us.
> 3) An external script/program picks up this data - outside Plone but still
> in the filesystem of the server - and generate some other data.
> 4) We take the generated data and send it back to the customer in an
> e-mail.
>
> I've already arranged step 1 and 2. Step 3 should be possible with help
> from
> two fellow employees here, we've already set up a conceptual system. Step 4
> though, I don't know how to do this. It would be nice if our program could
> send the generated data to the PFG Mail Adapter but at this point I don't
> know how the adapter would be able to receive and mail something that
> doesn't come from a PFG form.
>
> Regards,
> Lars
> --
> View this message in context:
>
http://n2.nabble.com/Form-with-autoresponder-function-tp3897607p3898774.html> Sent from the General Questions mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>
http://p.sf.net/sfu/devconference> _______________________________________________
> Plone-Users mailing list
> Plone-Users@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/plone-users>
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
Plone-Users mailing list
Plone-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-users