I already tried it whit an include page. It works but the email shows the
html-code as text.
 
I used this code:

<mm:createnode type="email">
        <mm:setfield name="to">[EMAIL PROTECTED]</mm:setfield>
        <mm:setfield name="body"><mm:include page="nieuwsbrief.jsp"
/></mm:setfield>
</mm:createnode>

I also tried to use the "bodyurl" field but that generated a getMimetype
error.
Is there a way where I can set the contentType of the mail to "text/html" ?


-----Original Message-----
From: Eduard Witteveen [mailto:[EMAIL PROTECTED]]
Sent: maandag 14 oktober 2002 13:18
To: MMBase users
Subject: Re: html-email


On Mon, 2002-10-14 at 13:05, Marcel Romkes wrote:
> Does anybody know how the to send a generated jsp-file as an html email?
I never tried this, but following could work (assuming that you use the
email builder)

<mm:createnode type="email'>
        <mm:setfield name="receiver">[EMAIL PROTECTED]</mm:setfield>
        <mm:setfield name="content"><mm:include page="page.jsp"
/></mm:setfield>
</mm:createnode>

(this is not the actual jsp, but a pointer to how it could be fixed)

-- 
Eduard Witteveen Systeem Ontwikkelaar
Publieke Omroep,  Gateway C Kamer 101
+31(0)356772910 http://www.omroep.nl/
Sed quis custodiet ipsos custodes? : The sixth Satire from Juvenal

Reply via email to