On 08.Oct.2003 -- 06:09 PM, Josep Riudavets wrote:
> Thanks a lot ... now, it works perfectly ... I did not undersand cocoon
> protocol, but now I have learned some things about it ... thanks again
>
> Another question ... I'm generating pdf files in order to be attached. These
> files are named depending on a certain random number. For example, there
> could be next files:
>
> CADi_334435345.pfd
> CADi_453353423.pdf
> CADi_343432342.pdf
>
> The random number is "concated" to CADi_ string, forming another string.
> Thus, I have a string, namen st2, that contains the file name.
>
> I want to attach this files, but I don't know if I can do this:
>
> st1="context://fitxers/CADi_343432342.pdf";
> st2="CADi_343432342.pdf";
> <sendmail:attachment url=st1 mime-type="text/plain" name=st1>
>
> Is there any way to set url and name dinamically?
>
from the source
<!--
Add an attachment to the message. Attachements could be uploads or URLs
e.g. using the cocoon:-protocol. Attachment name and mime-type can optionally
be specified through attributes or <sendmail:param/> elements
and override the detected values.
Objects like uploads need to be added using a nested <sendmail:param/> tag.
-->
IOW
<sendmail:attachment mime-type="text/plain" name="st1">
<sendmail:param name="url"><xsp:expr>st1</xsp:expr></sendmail:param>
</sendmail:attachment>
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]