You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Thomas Hartwig <t....@crapoud.com> on 2004/07/09 18:58:59 UTC

sending email with a form

After some trouble I have managed to send email out of a standard pub 
with the help of:
http://wiki.apache.org/cocoon/RecipeXSPSendMailExample

I had to do following things further more to the wiki guide to be able 
to use the logic-sheet emailing:

1. Adding the cocoon-mail-block.jar of the cocoon distribution into the 
classpath of Lenya (eg. WEB-INF/lib)
2. Adding following lines (beneath others, see the wiki)  to 
cocoon.xconf: <component 
class="org.apache.cocoon.mail.MailMessageSender" 
logger="core.mail.MailSender" 
role="org.apache.cocoon.mail.MailSender"><parameter name="smtp-host" 
value="127.0.0.1"/></component>
3. Remove the attachement form parameter since it seems that this is not 
supported already.

However sincel I'm getting very slowly in Cocoon in general, I'm 
wondering if there are already others who use a email form within lenya. 
I have still the following problem to solve:
How to report the success of sending email to the user. The example in 
the wiki just prints out a string within the xsp page which is 
responsible for the sending. Perhaps here a redirection to a success 
page or back to the form would be nice. But I don't know how to handle 
this?! (I have tried <action:redirect-to ...>, but this fails within a 
xsp page)

Regards
Thomas

PS: I'm not quite sure if I'm on the right road. But if I get no blames 
I will post my doings in the lenya wiki ;-)


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org