Hi,
I use cocoon 2.1.3 and having a little trouble to send mail with dynamic content, using the sendmail logicsheet. Here's an xsp snippet that works :
<mail:send-mail> <mail:charset>ISO-8859-1</mail:charset> <mail:smtphost><xsp:expr>smtphost</xsp:expr></mail:smtphost> <mail:from>[EMAIL PROTECTED]</mail:from> <mail:to><xsp:expr>email</xsp:expr></mail:to> <mail:subject>shop : your command</mail:subject> <mail:body><xsp:expr>mailBody</xsp:expr></mail:body> <mail:attachment mime-type="text/xml" name="commande.xml"> <mail:param name="url">cocoon:/recap_cmd/24</mail:param> </mail:attachment> </mail:send-mail>
but I need the attachment 'url' parameter to be dynamic , i.e. like this :
<mail:param name="url">cocoon:/recap_cmd/<xsp:expr><util:get-sitemap-parameter name="cmd_id"/></xsp:expr></mail:param>
which doesn't work (although pulling in the sitemap parameter works elsewhere in the xsp).
Has someone got any clue on how I could fix this?
AFAIK this should work. Could you check the generated source or even
better, check with an XSL debugger (or just apply the sendmail.xsl manually)?
Chris.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
