tags:

views:

355

answers:

2

Hi everybody! I have to send an email from a gwt project using java mail api. I manage to do it with a normal java application (a Main project, a Junit test, whatever) but it just doesn't work inside an RPC call on GWT (version 1.7.1). I think I'm using the proper java libraries as I can send this email outside GWT. I'm using it in hosted mode, with the Jetty webserver (not using Google AppEngine), and I got this error:

Loading META-INF/javamail.providers from jar:file:/C:/documenti/workspaces/javalou/provatesina/war/WEB-INF/lib/appengine-api-1.0-sdk-1.2.6.jar!/META-INF/javamail.providers
DEBUG: loading new provider protocol=gm,className=com.google.appengine.api.mail.stdimpl.GMTransport,vendor=null, version=null
javax.mail.NoSuchProviderException: Unable to locate provider for protocol: smtp

do you have any idea? thanks!!!

A: 

Did you find any answer ?

Sankar P
if I remember well, I had to check all the libraries and delete every library related to google app engine, and maybe others (there were some conflicts)
lou
A: 

To send email in Google App Eng, you must use their api, and REMOVE ALL JAVA MAIL JARs FROM YOUR FILEs.

J-16 SDiZ