cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josep Riudavets" <>
Subject Re: Sendmail attachment
Date Wed, 08 Oct 2003 15:24:43 GMT
I'm using Cocoon 2.1. In Cocoon documentatio, there is an example of sending mail with attachment:

      <sendmail:from>from address</sendmail:from>
      <sendmail:to>some maillinglist address</sendmail:to>
      <sendmail:subject><xsp-request:get-parameter name="subject"/></sendmail:subject>
      <!-- Modify the next line to point to your mail server -->
        <sendmail:param name="object"><xsp:expr>request.get("attachment")</xsp:expr></sendmail:param>
      <sendmail:attachment url="context://welcome.xml" mime-type="text/plain" name="foo.txt"/>
      <sendmail:attachment url="cocoon:///"            mime-type="text/html"  name="welcome.html"/>

           Email successfully sent.
   		 <p style="color:red;">
           An error occurred: <sendmail:error-message/>

I don't understand attachment taglibs. What does "cocoon:///" mean? If I want to attach a
file under "/usr/local/tomcat/webapps/cocoon/fitxers" named "out.xml" ... how can I attach
it? What's the syntax? 


  ----- Original Message ----- 
  From: jim basilakis 
  Sent: Wednesday, October 08, 2003 12:30 AM
  Subject: RE: Sendmail attachment


  I have been using Cocoon 2.0.4 and I wanted to send e-mail attachments as well. Looking
at the coccon.jar file 
  specifically for the sendmail.xsl logic sheet...there was no <sendmail:attachment>
taglib specified therefore
  only text could be sent and no attachments, so I modified this logicsheet to include this
tag after reading
  about the JavaMail API.

  It is fairly easy to do and I can send this if you want.


    -----Original Message-----
    From: Josep Riudavets []
    Sent: Tuesday, 7 October 2003 11:20 PM
    Subject: Sendmail attachment


    I'm using sendmail taglibs ... and I want to attach a file placed into "/usr/local/tomcat/webapps/cocoon/fitxers/CADi.pfd"

    What the correct syntax for the <sendmail:attachment> taglib?


View raw message