[jboss-cvs] jboss-seam/src/main/org/jboss/seam/mail ...
Peter Muir
peter at bleepbleep.org.uk
Sat Jan 20 14:58:43 EST 2007
User: pmuir
Date: 07/01/20 14:58:43
Modified: src/main/org/jboss/seam/mail MailSession.java
Log:
Support starttls by default
Revision Changes Path
1.3 +174 -169 jboss-seam/src/main/org/jboss/seam/mail/MailSession.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: MailSession.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/mail/MailSession.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- MailSession.java 9 Jan 2007 00:48:31 -0000 1.2
+++ MailSession.java 20 Jan 2007 19:58:43 -0000 1.3
@@ -88,6 +88,11 @@
};
}
+
+ // Use TLS (if supported) by default.
+ properties.put("mail.smtp.starttls.enable", "true");
+ properties.put("mail.imap.starttls.enable", "true");
+
session = javax.mail.Session.getInstance(properties, authenticator);
session.setDebug( isDebug() );
More information about the jboss-cvs-commits
mailing list