Permalink
Browse files

Clean up.

  • Loading branch information...
1 parent 76fdd93 commit a43a662995a743e399ba25d47e1581c8971773ff @absynce committed Jul 20, 2011
Showing with 1 addition and 8 deletions.
  1. +1 −8 infrastructure/net.appjet.ajstdlib/ajstdlib.scala
@@ -205,13 +205,6 @@ import com.sun.mail.util.MailSSLSocketFactory;
import javax.mail._;
import javax.mail.internet._;
import java.util.Properties;
-import java.security.cert.X509Certificate;
-import javax.net.ssl.HostnameVerifier;
-import javax.net.ssl.HttpsURLConnection;
-import javax.net.ssl.SSLContext;
-import javax.net.ssl.SSLSession;
-import javax.net.ssl.TrustManager;
-import javax.net.ssl.X509TrustManager;
object email {
def sendEmail(toAddr: Array[String], fromAddr: String, subject: String, headers: Scriptable, content: String): String = {
@@ -226,7 +219,7 @@ object email {
val props = new Properties;
val sf = new MailSSLSocketFactory();
- sf.setTrustAllHosts(config.smtpTrustAllHosts);
+ sf.setTrustAllHosts(config.smtpTrustAllHosts);
props.put("mail.smtp.ssl.socketFactory", sf);
props.put("mail.smtp.starttls.enable", config.smtpStartTls);
props.put("mail.smtp.host", config.smtpServerHost);

0 comments on commit a43a662

Please sign in to comment.