You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Carlos Dias <cd...@pontoc.pt> on 2005/01/26 11:51:19 UTC
Zip attach file
Hi folks,
Here is my problem. I want to zip an attach file generated by the
sendmail feature.
Here is the code:
<xsl:template match="sql:row">
<xsl:element name="email:sendmail">
<xsl:element name="email:smtphost">
<xsl:value-of select="$smtp_host"/>
</xsl:element>
<xsl:element name="email:from">
<xsl:value-of select="$from"/>
</xsl:element>
<xsl:element name="email:to">
<xsl:value-of select="sql:email"/>
</xsl:element>
<xsl:element name="email:subject">
<xsl:value-of select="sql:schedule_email_subject"/>
</xsl:element>
<xsl:element name="email:attachment">
<xsl:attribute name="name"><xsl:value-of
select="sql:bookmark_description"/>.xls</xsl:attribute>
<xsl:attribute
name="mime-type">application/vnd.ms-excel</xsl:attribute>
<xsl:attribute name="src">cocoon:/offlineexcel
</xsl:element>
<xsl:element name="email:body">
<xsl:value-of
select="//email-scheduler/email-default-values/body"/>
</xsl:element>
</xsl:element>
</xsl:template>
I read the zip archive serializer but don't know if this is the answer
to my problem.
Thanks in advance,
Carlos Dias
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org