From: Prakash <dug...@us...> - 2006-02-08 07:39:48
|
Update of /cvsroot/jedit/plugins/JMail/jmail In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8194/jmail Modified Files: JMailPlugin.java Log Message: Support for SMTP authentication and secure SMTP Index: JMailPlugin.java =================================================================== RCS file: /cvsroot/jedit/plugins/JMail/jmail/JMailPlugin.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- JMailPlugin.java 8 Jun 2005 09:22:23 -0000 1.6 +++ JMailPlugin.java 8 Feb 2006 07:39:41 -0000 1.7 @@ -21,6 +21,7 @@ import java.util.Date; import java.util.List; +import java.util.Properties; import javax.mail.Message; import javax.mail.Session; @@ -62,7 +63,11 @@ public void start() { authenticator = new PasswordAuthenticator(); - session = Session.getDefaultInstance(System.getProperties(), authenticator); + Properties props = System.getProperties(); + props.put("mail.smtp.auth", "true"); + props.put("mail.smtp.starttls.enable", "true"); + + session = Session.getDefaultInstance(props, authenticator); session.setDebug(jEdit.getBooleanProperty(MAIL_DEBUG, false)); //Load default server list @@ -166,4 +171,4 @@ private static JMailPlugin instance; -} \ No newline at end of file +} |