HTML Email

2009-07-07 Thread webpost
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);

RE: bug?

2009-07-07 Thread Jerome Louvel
Actually, I've just renamed the method to doCatch as the error term was ambiguous regarding Java terminology (ie. errors vs exceptions). Same logic. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~

RE: GAE + Restlet issue

2009-07-07 Thread Jerome Louvel
Hi Matt, I've protected this part of the code against NPEs in SVN trunk. That should help. Otherwise, did you modify the ConnectorService in your component? Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founderĀ ~

RE: HTML Email

2009-07-07 Thread Jerome Louvel
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

RE: Need help with S3App.java example, from RESTful Web Services (O'Reilly)

2009-07-07 Thread Jerome Louvel
Hi woodHack, I've just did a test and it worked for me. I created an AWS account *and* signed up for the S3 service (you need this step). I was able to retrieve the list of buckets (empty initially) fine. See also the slightly updated classes attached. Best regards, Jerome Louvel -- Restlet ~