Hi there, When using the SMTP client connector, you need to POST mails using a special XML document as specified here: http://www.restlet.org/documentation/snapshot/ext/org/restlet/ext/javamail/J avaMailClientHelper.html
In the <body> element, you should try to add your HTML content as a CDATA section. Let us know if this still doesn't work. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -----Message d'origine----- De : webp...@tigris.org [mailto:webp...@tigris.org] Envoyé : mardi 7 juillet 2009 02:25 À : discuss@restlet.tigris.org Objet : HTML Email Anyone have any luck sending HTML email through restlet? I've tried explicitly setting the content type on the request, but the client always seems to receive an email of type text/plain. Here's basically what I'm doing: Client client = new Client(Protocol.SMTP); request.getAttributes().put("Content-type","text/html"); Anyone have any tips on how to send HTML email? ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=23685 98 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2368732