Hi Paul,

You could do a HTTP POST with the proper XML message representation using
this class:
http://www.restlet.org/documentation/snapshot/gwt/ext/org/restlet/client/ext
/xml/DomRepresentation.html

On the server-side, you could use a Redirector in CLIENT_OUTBOUND mode that
would rewrite the URI to smtp://.. in order to leverage JavaMailClientHelper
:)

Best regards,
Jerome
--
http://www.restlet.org
http://twitter.com/#!/jlouvel




-----Message d'origine-----
De : Paul Morris [mailto:[email protected]] 
Envoyé : jeudi 22 septembre 2011 15:21
À : [email protected]
Objet : JavaMail and GWT

A high-level design question: I would like to send an email representation
from Restlet-GWT to a Restlet Service on the back-end for processing
(sending). I'm thinking of using the JavaMail extension on the server side.
I'm also thinking of POSTing a MessageRepresentation from the client side
and noticed the JavaMailClientHelper class. Could I integrate that JavaMail
extension class into GWT (i.e. would it work from AJAX)? ANy other
suggestions for designing such an app (AJAX to RESTful service using
Restlet)?

Thanks in advance.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=28433
17

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2844465

Reply via email to