Monday, December 23, 2013

gwt mail with appengine and tomcat

i got this exception

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

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

       String host = "auth.smtp.1and1.fr";
       String username = "ctruc@bidule.com";
       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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment