Re: Chaining pipelines --- write a file to server --- email it as an attachment -- delete the file
On 24.Jun.2003 -- 03:41 PM, Yan, Charlene wrote: When I click a Send Email button on the page, the application will create a rtf file on the server, and then sendMail will send email to an email address entered by the user with attachment of the rtf file and idealy the rtf file should be deleted from the server. See e.g. http://wiki.cocoondev.org/Wiki.jsp?page=MailBodyViaPipeline Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Chaining pipelines --- write a file to server --- email it as an attachment -- delete the file
Thanks, Chris. I am looking at the example. I think my problem is more complicated. When I click on Send Email button, I need to post an xml string to Cocoon pipeline to generate the rtf file. Then I can use the rtf as an attachment to the email. It would be easier if I had a pipeline that opens a static rtf. The difficult thing is how I can do two posts at ONE button click. Charlene -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 8:46 AM To: [EMAIL PROTECTED] Subject: Re: Chaining pipelines --- write a file to server --- email it as an attachment -- delete the file On 24.Jun.2003 -- 03:41 PM, Yan, Charlene wrote: When I click a Send Email button on the page, the application will create a rtf file on the server, and then sendMail will send email to an email address entered by the user with attachment of the rtf file and idealy the rtf file should be deleted from the server. See e.g. http://wiki.cocoondev.org/Wiki.jsp?page=MailBodyViaPipeline Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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: Chaining pipelines --- write a file to server --- email it as an attachment -- delete the file
Let me try to explain my problem again. http://wiki.cocoondev.org/Wiki.jsp?page=MailBodyViaPipeline is only part of what I'm trying to do. When Send Email button is clicked, an xml String named Foo is passed to pipeline processOrder and a rtf file is generated. Then pipeline send will send the rtf file as an attachment. processOrder has to happen before the send. I found a thread talking about this http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=105609808514142w=2 (pipeline dependencies). But it is different from what I'm trying to do. processOrder is invoked only when sendmail:attachment url=cocoon:/// name=processOrder/ is called from mail.xsp. So my question is how I can start processOrder pipeline and attach the result to the send pipeline. How can I chain these two pipelines together? Or is it possible to write the file to the server and then to get the attachment thereafter? In either way, I need to invoke processOrder first. Thanks! Charlene map:match pattern=send map:generate type=serverpages src=mail.xsp / map:serialize / /map:match map:match pattern=processOrder map:generate type=stream map:parameter name=form-name value=Foo/ /map:generate map:transform src=context://stylesheets/system/simple-page2fo.xsl/ map:serialize type=fo2rtf/ /map:match On 24.Jun.2003 -- 03:41 PM, Yan, Charlene wrote: When I click a Send Email button on the page, the application will create a rtf file on the server, and then sendMail will send email to an email address entered by the user with attachment of the rtf file and idealy the rtf file should be deleted from the server. See e.g. http://wiki.cocoondev.org/Wiki.jsp?page=MailBodyViaPipeline Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Chaining pipelines --- write a file to server --- email it as an attachment -- delete the file
All, Please let me know if this is possible with Cocoon to accomplish the following: When I click a Send Email button on the page, the application will create a rtf file on the server, and then sendMail will send email to an email address entered by the user with attachment of the rtf file and idealy the rtf file should be deleted from the server. Here is what I have so far. 1. I am able to create a rtf file and display it in a browser. The user has the option to save it to their hard drive. Do you know how I can write it to the server behind the scene, meaning without opening it in a browser. 2. I am able to send emails from the mail sample page with attachment either from a file or from a url. Basically it is a pipeline chaining issue, I think. Please let me now if what I'm planning to do is feasible in Cocoon. I will appreciate any ideas and thoughts from you!!! Thanks. Charlene - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]