Re: Sending E-Mail with CForms

2006-05-18 Thread Peter Sparkes

Kaj

Another way to send emails is using the SendMailTransformer:

http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/mail/transformation/SendMailTransformer.html

the  above gives a example

Peter


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi there,
has anybody an example how to send e-mail from Flow Script?

I do have set up a cocoon form with template and a flow script. I'd like
to peak at someones code for sending an e-mail.

I have found samples using action and logicsheets. But I can't find
how to combine that with my CForm.

All help appreciated

Kaj
- --
[EMAIL PROTECTED]

- -
|  We produce animated software manuals that click  |
- -
Conficio
http://www.conficio.com/
P.O.Box 761062,  Melrose,
MA 02176

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (MingW32)

iD8DBQFEa84xRDUvrJRNjTARAlINAKCb8SBfTcR44jhyfandQFd5gKQNbACdGRGy
3BK+4rjZQAQn0RF7ZVPntjY=
=KTay
-END PGP SIGNATURE-

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


 



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



Re: Sending E-Mail with CForms

2006-05-18 Thread werner

Hi Kaj,

if you want to do it the cocoon way, take the SendmailTransformer. I 
think using the logicsheet should work too, but it's considered old 
fashion.  Be careful if you use an old Cocoon version (2.1.9), because 
the SendmailTranformer had some bugs. If you need  more sophisticated 
features than the SendmailTranformer offers, then you will have to 
implement your own Class and use the JavaMail API directly. (You can 
even do that in Flowscript.) Just google around for some JavaMail 
samples and call that from Flowscript. The contents of the mail can be 
created from a pipline, flowscript,  anything you want. HTH. There 
is not much documentation for sending mail with cocoon.


Werner

Kaj Kandler wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi there,
has anybody an example how to send e-mail from Flow Script?

I do have set up a cocoon form with template and a flow script. I'd like
to peak at someones code for sending an e-mail.

I have found samples using action and logicsheets. But I can't find
how to combine that with my CForm.

All help appreciated

Kaj
- --
[EMAIL PROTECTED]

- -
|  We produce animated software manuals that click  |
- -
Conficio
http://www.conficio.com/
P.O.Box 761062,  Melrose,
MA 02176

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (MingW32)

iD8DBQFEa84xRDUvrJRNjTARAlINAKCb8SBfTcR44jhyfandQFd5gKQNbACdGRGy
3BK+4rjZQAQn0RF7ZVPntjY=
=KTay
-END PGP SIGNATURE-

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

 




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