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>[EMAIL PROTECTED]</sendmail:to>
        <sendmail:from>[EMAIL PROTECTED]</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: [EMAIL PROTECTED]

Attachment: sendmail.xsl.diff
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to