cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Geissel" <ageis...@zenark.com>
Subject Patch for adding HTML content to <sendmail:send-mail/> logic-tag
Date Fri, 16 Nov 2001 10:58:08 GMT
Hi

Attached please find a patchfile for including HTML in the <sendmail:body/>
sub-tag.

Usage is as follows:

      <sendmail:send-mail>
        <sendmail:smtphost>mail.server</sendmail:smtphost>
        <sendmail:to>you@co.org</sendmail:to>
        <sendmail:from>me@co.org</sendmail:from>
        <sendmail:subject>RICH EMAIL CONTENT</sendmail:subject>
        <sendmail:body mime-type="text/html">
          &lt;html&gt;
          &lt;body&gt;
          &lt;p&gt;&lt;b&gt;Demo Hyperlink:&lt;/b&gt;&lt;br/&gt;
          &lt;a href='http://xml.apache.org/cocoon2'&gt;Link to
Cocoon2&lt;/a&gt;
          &lt;/body&gt;
          &lt;/html&gt;
        </sendmail:body>
      </sendmail:send-mail>


Please also note that the sendmail logicsheet is not registered in the
cocoon.xconf. Please add the following code to enable it:

        <builtin-logicsheet>
          <parameter name="prefix" value="sendmail"/>
          <parameter name="uri"
value="http://apache.org/cocoon/sendmail/1.0"/>
          <parameter name="href"
value="resource://org/apache/cocoon/components/language/markup/xsp/java/send
mail.xsl"/>
        </builtin-logicsheet>

Many thanks,
Adrian Geissel
email: ageissel@users.sourceforge.net

Mime
View raw message