You are not using the python API http://code.google.com/appengine/docs/java/mail/overview.html You are not currently on the App Engine group: https://groups.google.com/forum/#!forum/google-appengine https://groups.google.com/forum/#!forum/google-appengine-java The init() method of the Java HTTP servlet is only called when the servlet instance is loaded. What you are doing is similar to sending an email in a constructor. Do what Shawn suggested and override the doGet or doPost methods (depending on what type of http request you are going to use) and make sure that the Servlet is properly defined in the deployment descriptor. http://code.google.com/appengine/docs/java/config/webxml.html#Servlets_and_URL_Paths I looks like you will want something like:
<web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5"> <servlet> <servlet-name>mailserver</servlet-name> <servlet-class>MailServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>mailserver</servlet-name> <url-pattern>/mailserver/*</url-pattern> </servlet-mapping> </web-app> Also like Shawn said, if you are planning on using sessions you will need to enable them on App Engine. http://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessions -- 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/-/A-sW88o9BaEJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
