Form with autoresponder function

6 messages Options
Embed this post
Permalink
rvengelen () Form with autoresponder function
Reply Threaded More More options
Print post
Permalink
Hi All,

I'm not sure (if possible) where to this but I'm looking for a form with some kind of autoresponder function. Let me try and explain what I'd like.

We've created a form with PloneFormGen. The form is used by our customers to announce themselves for visiting a seminar.

What we need is that when the customer submits the form they will receive a copy (by e-mail) of the filled out form together with a uniquely generated random code/key. On arrival at the seminar they are requested to read out the key that they've received.

To the form needs to do two things:

1. Generate a  random key and stick to the filled out form;
2. Send a copy of the filled out form (together with the key) to the customer.

Can somebody please point me into the right direction with this? I'm not really a developer so I'm not sure where to start from.

Kind regards,

Ron
ajung () Re: Form with autoresponder function
Reply Threaded More More options
Print post
Permalink
What is your key problem?  The goal can be reach both PloneFormGen (using the save adapter for storing the records  + script adapter for generating the related key). Another option would be using Signupsheet providing a similar functionality. The only problem might be getting a generated key into the mail...I think this is doable...you might check the PFG docs section first...it provides a bunch of reasonable hints.

-aj

rvengelen wrote:
Hi All,

I'm not sure (if possible) where to this but I'm looking for a form with some kind of autoresponder function. Let me try and explain what I'd like.

We've created a form with PloneFormGen. The form is used by our customers to announce themselves for visiting a seminar.

What we need is that when the customer submits the form they will receive a copy (by e-mail) of the filled out form together with a uniquely generated random code/key. On arrival at the seminar they are requested to read out the key that they've received.

To the form needs to do two things:

1. Generate a  random key and stick to the filled out form;
2. Send a copy of the filled out form (together with the key) to the customer.

Can somebody please point me into the right direction with this? I'm not really a developer so I'm not sure where to start from.

Kind regards,

Ron
Lars Löwenadler () Re: Form with autoresponder function
Reply Threaded More More options
Print post
Permalink
In reply to this post by rvengelen
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
David Hostetler () Re: Form with autoresponder function
Reply Threaded More More options
Print post
Permalink
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 <[hidden email]> 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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
David Hostetler () Re: Form with autoresponder function
Reply Threaded More More options
Print post
Permalink
In reply to this post by Lars Löwenadler

Just to be clear: what I did was take the data in the submitted form and use it to generate a completely new file.  The file could have had as much or as little to do with the actual form values as I'd wanted.  Basically some of the form values became arguments to a function that produced a brand new file.

And from an even broader perspective, what this process does is allow PFG to act like a bridge between the user and a function that they need to invoke that produces a file for them, in which the generation of the file needs to be parameterized via some info that only the user can provide.  And because the file generation actually happens in an external method, I can involve other systems, databases, 3rd party facilities, whatever -- with the only real concern being that the whole process can't take too long because it happens within the context of handling an http form submission.

-hoss

On Tue, Oct 27, 2009 at 09:50, Lars Löwenadler <[hidden email]> wrote:
Hi,

Although it's not the form data file I'd like to send (however, the e-mail attachment feature seems nice), I guess your implementations may be helpful hints for both me and the original poster, as well as others in case you post via Nabble. Any time put into it would be much appreciated!

Thank you indeed,
Lars


On Tue, 27 Oct 2009 14:35:55 +0100, David Hostetler <[hidden email]> wrote:

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 <
[hidden email]> 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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
rvengelen () Re: Form with autoresponder function
Reply Threaded More More options
Print post
Permalink
In reply to this post by David Hostetler
Hi David,

I think your approach could work just fine for what I'd like my form to do. Do you think you'll have some time available to make the write-up of the step/pieces?

Thanks in advance!

Kind regards,

Ron van Engelen


David Hostetler wrote:
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