[daisy] HTML Email Notification

Bruno Dumon bruno at outerthought.org
Fri Sep 1 04:13:30 CDT 2006


On Thu, 2006-08-31 at 15:48 +1000, Scott Warren wrote: 
> I am taking the existing code for email notification and using XSLT as a
> template language. (I feel more comfortable with XSL) I noticed in
> org.outerj.daisy.emailer.serverimpl.CommonEmailer. sendEmail() a line like
> 
> Msg.setText(messageText, emailCharsSet);
> 
> This seemed to fail for me when I set the email char set to text/html in the
> myconfig.xml. I have changed the line to msg.setContent(messageText,
> emailCharSet); which works as expected. My question is has anyone used a
> value of text/html for existing Code? 

Allow me to say it's a bit of a suprising question, since the setText
method takes a character set as argument, not a mime type, so it doens't
make sense to try to specify a mime type.

See also the javamail API docs:
http://java.sun.com/products/javamail/javadocs/index.html

Supporting HTML mails for the notifications would be interesting indeed,
but then this will require some redesign here and there.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org



More information about the daisy mailing list