Hi Ruben,

On Friday 2009.02.27, at 09:27 , Ruben Jenster wrote:
[...]
> I need an SMTP server for receiving java objects. Is it possible  
> with Restlet that the server can receive SMTP messages with a java  
> object in the form of a XML representation in the body? Can the  
> javamail connector do this? According to the javamail homepage,  
> javamail is not for the server side.
>
> What I want to do is to forward the data of a web from with the PHP  
> mail() function to
> my restlet server.
>
> Is this a good method?
>
>           SMTP                JAVA
> PHP mail() -----> Apache James ----> REST
>       HTTP
> Client -----> REST Server

I'm a little confused by your questions...

Is all you really need to do is to get HTML form data from you website  
to your restlet based server?  If so then why bother with mail at all  
-- just have your client form POST the data to your restlet server.   
Using post() in PHP instead of mail() is pretty easy to change.

Hope this helps,
John

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

Reply via email to