tx. it works :-) Do you know any more sites other then apache that have tutorials for common-email?
/Mathias 2006/12/19, C. Grobmeier <[EMAIL PROTECTED]>:
Hi, > Hi, if im not misstaken common-email can send both a body part with a > plain text and a body part of html in one mail. So the reciever either > get the text or html depending on the recievers email client settings. > Is this true? > Then second question how to i impl that. Like this? You need HTML-Messages. Visit this: http://jakarta.apache.org/commons/email/userguide.html and search for "HTML formatted email". You will see the following: HtmlEmail email = new HtmlEmail(); // set the html message email.setHtmlMsg("<html>The apache logo - <img src=\"cid:"+cid+"\"></html>"); // set the alternative message email.setTextMsg("Your email client does not support HTML messages"); That should do fine. Cheers, Chris --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
