I'm using Cocoon 2.1. In Cocoon documentatio, there
is an example of sending mail with attachment:
<sendmail:send-mail>
<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:smtphost>localhost</sendmail:smtphost> <sendmail:body><xsp:expr>body.toString()</xsp:expr></sendmail:body> <sendmail:attachment> <sendmail:param name="object"><xsp:expr>request.get("attachment")</xsp:expr></sendmail:param> </sendmail:attachment> <sendmail:attachment url="" mime-type="text/plain" name="foo.txt"/> <sendmail:attachment url="" mime-type="text/html" name="welcome.html"/> <sendmail:on-success> <p> Email successfully sent. </p> </sendmail:on-success> <sendmail:on-error> <p style="color:red;"> An error occurred: <sendmail:error-message/> </p> </sendmail:on-error> </sendmail:send-mail> 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?
Thanks
|
- Sendmail attachment Josep Riudavets
- RE: Sendmail attachment jim basilakis
- Re: Sendmail attachment Josep Riudavets
- Re: Sendmail attachment Christian Haul
- Re: Sendmail attachment Josep Riudavets
- Re: Sendmail attachment Christian Haul
- Re: Sendmail attachment Josep Riudavets
- Re: Sendmail attachment Christian Haul
- RE: Sendmail attachment Horsfield, Peter A.