Hi, I had a similar issue and this is how I was shown to do it.
public native void gotoURLscript(String url) /*-{ open(url); }-*/; Usage: public void gotoURL(String url) { gotoURLscript(URL.encode(url)); } This will do any url on your client. If you are wishing one that only does local mail from the client. private static native void mailtoImpl(String address, String subject) /*-{ $wnd.location = "mailto:" + address + "?subject=" + subject; }-*/; public static void SendMail(String emailaddress, String subject) { mailtoImpl(emailaddress, URL.encode(subject)); } Hope this helps. On Jul 19, 11:55 am, Jeff Chimene <jchim...@gmail.com> wrote: > On 07/18/2009 09:54 AM, samuel wrote: > > > > > Hi Group, > > > I have a requirement where I am making use of an URL for sending > > mails. Some thing like this > > >http://www.<examplemailsending>.com/messageapi.asp?username=<username>&password=<password>&destination=<A1>,<A2>,<A3>&message=Hi > > Hi Abhiram, > > Would it be possible to redesign the interface to not send a password in > the URL? > > Since you're talking to a server, please consider using your server's > Sendmail libraries to send the message(s). There are Sendmail libraries > for all major CGI languages; such libraries are usually readily > available on any respectable hosting service. > > Put the SMTP authentication parameters into a file outside the > directories accessible via the http:// protocol. For example: > > private <-- authentication values; no access via http:// > web <-- access via http:// > http <-- .html, .js > cgi-bin <-- .cgi scripts > > > I am making a list of all the people A1, A2, A3... to whom the "Hi" > > message needs to be sent. > > If you want the message to be sent from the client, consider using the > mailto: url. Here is an example. Google for other information: > > mailto:bar...@rubble.com,f...@flintstone.com,wi...@flintstone.com > ?subject=Meeting%20at%20the%20quarry > &body=Hi:%0d%0aSee%20you%20there > > If you paste this url into your brower's address window, your email > client should respond with a new message. This technique may not work on > all client computers; which is why invoking Sendmail from your hosting > provider may be a more universal solution. > > > > > Can someone tell me which is the best way to implement this > > requirement??- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---