Monday, December 23, 2013

gwt mail with appengine and tomcat

i got this exception

javax.mail.MessagingException: Exception reading response ( Socket operation timed out:

with this code, and in /lib i have added javamail-1.4.7 jar

       String host = "";
       String username = "";
       String password = "xxx";
       Properties props = new Properties();
       props.put("mail.smtp.starttls.enable", "true");
       props.put("mail.transport.protocol", "smtp");
       props.put("mail.smtp.auth", "true");
       props.put("mail.smtp.port", "465" );
       Session session = Session.getInstance(props,null);
       Transport transport = session.getTransport("smtp");

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment