You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by hideki tihiri <hi...@gmail.com> on 2009/06/12 17:52:39 UTC

How to send html/plain mail with sendmail logicsheet ?

I,

I do not succeed in sending an HTML mail (with also a regular text as
fallback in case the browser does not support it)

I have following code (snippet):


<sendmail:send-mail>

<sendmail:from>...</sendmail:from>

<sendmail:to><esql:get-string column="email"/></sendmail:to>

<sendmail:subject><xsp:expr>subject</xsp:expr></sendmail:subject>

<sendmail:smtphost><util:get-sitemap-parameter name="smtphost"/></
sendmail:smtphost>

<sendmail:body>TEST</sendmail:body>

<sendmail:attachment mime-type="text/plain;charset=utf-8"><sendmail:paramname
="object"><xsp:expr>bodytxttmp</xsp:expr></sendmail:param></
sendmail:attachment>

<sendmail:attachment mime-type="text/html" ><sendmail:param name="object"><
xsp:expr>bodyhtmltmp</xsp:expr></sendmail:param></sendmail:attachment>
<sendmail:on-success>

In GMAil the regular text shows AND after also the the HTML text.

In hotmail I get a lot of strange characters (I support that has to do with
the UTD- 8 ?

bodytxttmp and bodyhtmltmp are String instances.

Also, do I need to define the <sendmail:body>TEST</sendmail:body> or not ?

HAs anyone experience with it ?

H.