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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to