Basic Mail Using GWT UI

24 views
Skip to first unread message

Bubby

unread,
May 24, 2012, 2:04:53 PM5/24/12
to Google Web Toolkit
Hi Greetings All,

I have a beginner... in GWT.
I have been creating User Interface using GWT.
But now I want to have a basic mail application in GWT.
I have to capture the information entered on the screen and send it as
a mail.
Can anyone help me in doing this...

I have been trying to do this using Javamail and some Remote Procedure
Call, but was unsuccessful... may be because I did not code
correctly.

Please provide the steps to do the said task.

Thanks,
Regards, Bubby

Joseph Lust

unread,
May 30, 2012, 4:09:30 PM5/30/12
to google-we...@googlegroups.com
Buddy,

Show us your code that is not working and we'll try to help.

Sincerely,
Joseph

Fahmi

unread,
May 30, 2012, 11:06:06 PM5/30/12
to google-we...@googlegroups.com
this is my code at server side for sending email (my server is google app engine)..


public static void Email(String test)  {
        DateFormat formatter ;
        Properties props = new Properties();
        Session session = Session.getDefaultInstance(props, null);


try{
   
           
             Message msg = new MimeMessage(session);
           msg.setFrom(new InternetAddress("Sender email", "Automatic email"));
           msg.addRecipient(Message.RecipientType.TO,
                            new InternetAddress("Recepient email"));
           msg.setSubject(test);
           msg.setText(test);
           Transport.send(msg);
        } catch (UnsupportedEncodingException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (MessagingException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
       
}

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/43B4cv-1gzQJ.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Kanagaraj M

unread,
May 30, 2012, 11:27:08 PM5/30/12
to google-we...@googlegroups.com
It is looking like nothing to do with GWT.
The problem could be more related to GAE or Mail.

To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages