Someone could send me a sample code of an application for sending e- mail? I'm following the http://code.google.com/appengine/docs/java/mail/overview.html # Sending_Mail_with_the_JavaMail_API but is not working.
On Apr 30, 2:53 pm, kozura <koz...@gmail.com> wrote: > I think you're missing the gist of the above replies - you can't use > this library on the client (browser) side of GWT. Only libraries that > use the limited set of the JRE emulated by GWT, listed > here:http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html, can > be used in client side code. > > Any functionality like mail or db connections and such must all be > done on the server side. The correct model is for the client/browser > to send requests to the server, ie through RPC calls, and for it to do > this sort of work, sending the results back to the client. > > On Apr 30, 11:43 am, Felipe Guarda <felip...@gmail.com> wrote: > > > > > > > added the javax.mail.jar, but now is missing the source of javax.mail. > > already downloaded the javamail-1.4.3-src.zip and have attached it in > > the lib javamail. But when I depploy app happens the errors below. > > What is missing to do? > > > errors: > > Compiling module com.ps.www.Plano_de_saude_online > > Validating newly compiled units > > [ERROR] Errors in 'file:/home/felipe/downloads/workspace/plano > > %20de%20saude%20online/src/com/ps/www/client/ > > Plano_de_saude_online.java' > > [ERROR] Line 82: No source code is available for type > > java.util.Properties; did you forget to inherit a required module? > > [ERROR] Line 83: No source code is available for type > > javax.mail.Session; did you forget to inherit a required module? > > [ERROR] Line 88: No source code is available for type > > javax.mail.Message; did you forget to inherit a required module? > > [ERROR] Line 88: No source code is available for type > > javax.mail.internet.MimeMessage; did you forget to inherit a required > > module? > > [ERROR] Line 89: No source code is available for type > > javax.mail.internet.InternetAddress; did you forget to inherit a > > required module? > > [ERROR] Line 90: No source code is available for type > > javax.mail.Message.RecipientType; did you forget to inherit a required > > module? > > [ERROR] Line 94: No source code is available for type > > javax.mail.Transport; did you forget to inherit a required module? > > [ERROR] Line 95: No source code is available for type > > javax.mail.MessagingException; did you forget to inherit a required > > module? > > Finding entry point classes > > [ERROR] Unable to find type > > 'com.ps.www.client.Plano_de_saude_online' > > [ERROR] Hint: Previous compiler errors may have made this > > type unavailable > > [ERROR] Hint: Check the inheritance chain from your module; > > it may not be inheriting a required module or a module may not be > > adding its source path entries properly > > > On Apr 29, 2:29 pm, Jason Essington <jas...@greenrivercomputing.com> > > wrote: > > > > You can't really use javax.mail on the client side, it isn't supported by > > > the emulation library. > > > > you'd have to send your data to the server and use javamail from there. > > > > -jason > > > > On Apr 29, 2010, at 11:20 AM, Felipe Guarda wrote: > > > > > Yes, i`m using javax.mail in the clientside code. where is the correct > > > > place? > > > > > Felipe > > > > > On Apr 29, 1:34 pm, "dolcra...@gmail.com" <dolcra...@gmail.com> wrote: > > > >> Are you using javax.mail in the clientside code? (If so, you can't do > > > >> this). Otherwise you just need to add thecorrect classpath > > > >> entriescorrect classpath entries > > > >> to the run configuration. > > > > >> On Apr 29, 10:26 am, Felipe Guarda <felip...@gmail.com> wrote: > > > > >>> I think i may have a problem with which JRE the appengine hosted > > > >>> browser is using to compile. In eclipse my code recognizes the > > > >>> various classes I'm importing for my JavaMail use (no precompile > > > >>> errors). However, when I Run As a web app, the GWT Hosted Mode > > > >>> console reports the following: > > > >>> [ERROR] Line 28: The import javax.mail cannot be resolved > > > >>> [ERROR] Line 29: The import javax.mail cannot be resolved > > > >>> [ERROR] Line 30: The import javax.mail cannot be resolved > > > >>> [ERROR] Line 31: The import javax.mail cannot be resolved > > > >>> [ERROR] Line 32: The import javax.mail cannot be resolved > > > >>> [ERROR] Line 33: The import javax.mail cannot be resolved > > > >>> [ERROR] Line 34: The import javax.mail cannot be resolved > > > >>> [ERROR] Line 81: Session cannot be resolved to a type > > > >>> [ERROR] Line 81: Session cannot be resolved > > > >>> [ERROR] Line 86: Message cannot be resolved to a type > > > >>> [ERROR] Line 86: MimeMessage cannot be resolved to a type > > > >>> [ERROR] Line 87: InternetAddress cannot be resolved to a type > > > >>> [ERROR] Line 88: Message cannot be resolved > > > >>> [ERROR] Line 89: InternetAddress cannot be resolved to a type > > > >>> [ERROR] Line 92: Transport cannot be resolved > > > >>> [ERROR] Line 93: MessagingException cannot be resolved to a > > > >>> type > > > > >>> Any help would be appreciated... > > > > >>> -- > > > >>> 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-tool...@googlegroups.com. > > > >>> To unsubscribe from this group, send email to > > > >>> google-web-toolkit+unsubscr...@googlegroups.com. > > > >>> For more options, visit this group > > > >>> athttp://groups.google.com/group/google-web-toolkit?hl=en. > > > > >> -- > > > >> 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-tool...@googlegroups.com. > > > >> To unsubscribe from this group, send email to > > > >> google-web-toolkit+unsubscr...@googlegroups.com. > > > >> For more options, visit this group > > > >> athttp://groups.google.com/group/google-web-toolkit?hl=en. > > > > > -- > > > > 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-tool...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > google-web-toolkit+unsubscr...@googlegroups.com. > > > > For more options, visit this group > > > > athttp://groups.google.com/group/google-web-toolkit?hl=en. > > > > -- > > > 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-tool...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-web-toolkit+unsubscr...@googlegroups.com. > > > For more options, visit this group > > > athttp://groups.google.com/group/google-web-toolkit?hl=en. > > > -- > > 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-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/google-web-toolkit?hl=en. > > -- > 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-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@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.