Hi Torsten,

Many ways to reach your goal. Depends on how much control you want on the process, but I would say, pick the method that you can work out the quickest.. :)

Catching a value from a HTML form is easy, they come in as request parameters. You can do something like:

     <map:parameter name="body" 
value="{request-param:nameoffieldwithbodytext}"/>

I haven't got around using CForms and jx, so can't tell how fields are passed 
in that case...

Grtz,
Geert

Hi all,

I have a quite straight forward problem, but I was yet unable to find a solution.

All I want is to have the website visitor enter some information into a form and have Cocoon email this information somewhere using the Sendmail action.

I have a matcher in the sitemap which is called from the flowscript, such as:

<map:match pattern="mitgliedsantrag_bestaetigung.jx">
  <map:act type="sendmail">
    <map:parameter name="smtphost" value="localhost"/>
    <map:parameter name="from" value="[EMAIL PROTECTED]"/>
    <map:parameter name="to" value="[EMAIL PROTECTED]"/>
    <map:parameter name="body" value="... what should I put here ???"/>
  </map:act>
</map:match>

This is called from a flowscript.js:

cocoon.sendPage("mitgliedsantrag_bestaetigung.jx", bizdata);

The JavaScript array bizdata contains the information collected in a form.

Am I trying the wrong aproach to this?

Bonus question:

Should I rather set up a pipeline which builds the mail body? I could use the JX generator to achieve this. But then the question would be: How do I send the result of a pipeline in an email?

Regards,
Torsten

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- [EMAIL PROTECTED] IT-consultant at Daidalos BV, Zoetermeer (NL)

http://www.daidalos.nl/
tel:+31-(0)79-3316961
fax:+31-(0)79-3316464

GPG: 1024D/12DEBB50

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to