Hello Abhi,
I have sent you mail as I was not able to post request here. Your
example above shows file from file system. My requirement is user will
attach the file to email from his desktop. How do we handle this
situation.
Thank you in advance.
Thanks
On May 12, 2:05 am, kozura
Hey Felipe,
Here is what you need to do:
Client Side :
SendEmail.java (Entrypoint or a Popup) - A very basic design would be of
a TextArea / RichTextArea where you can have the body of the email written.
Then you can provide a Send Button. On the click of the send button,
create an object
but what about the implementation of the RPC, you could help me?
thanks
On May 10, 2:06 am, abhiram wuntakal abhir...@gmail.com wrote:
Hi Felipe,
This block of code would help you send an email from the application. The
trick basically is to get the textual data from the client side and
Hi Felipe,
RPC implementation would be simple. Just write an ordinary
RemoteServiceServlet and write a function to pass a String parameter (or a
Vo) with the emailBody to the ServiceImpl code. From ServiceImpl, you can
use the code below to send the email.
Let me know if this answers your
Abhi, you could best describe what must be put on every piece of code?
You sent me a piece of code that must remain in the Class
EmailServiceImpl server.side. My doubts are now, I need to create some
kind of interface EmailService and EmailServiceAsync?
In cliente.side.code how do I send the
What have you tried? For example, have you looked at the plentiful
example code included with GWT, which includes examples of how to do
RPC:
http://code.google.com/webtoolkit/examples/
And of course the RPC documentation with example code:
I'm trying to learn how to send emails using gwt/rpc but I have
difficulties.
Someone could send me a simple example that shows the implementation
of the code on the client and server?
tks
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To
Hi Felipe,
This block of code would help you send an email from the application. The
trick basically is to get the textual data from the client side and pass it
to the server side and then use this piece of code to send the email. This
is actually with the file attachment feature even.
You could use this example as a reference.
http://code.google.com/p/gwtupload/source/browse/#svn/trunk/SendMailSample/src/main/java/gwtupload/sendmailsample
svn checkout http://gwtupload.googlecode.com/svn/trunk/SendMailSample
Cheers
-Manolo
On Mon, May 10, 2010 at 7:06 AM, abhiram wuntakal