Add support for enabling TLS in helma.Mail as suggested by user Johnti on the Helma group:

http://groups.google.com/group/helma/browse_frm/thread/d32296c5df8996cb/af407e588fb60054
This commit is contained in:
hns 2008-10-20 15:09:12 +00:00
parent a4811de1e0
commit d0ede5de85

View file

@ -578,8 +578,12 @@ helma.Mail = function(host, port) {
props.put("mail.transport.protocol", "smtp");
props.put("mail.smtp.host", String(host));
props.put("mail.smtp.port", String(port || 25));
props.put("mail.smtp.starttls.enable",
getProperty("smtp.tls") || "false");
props.put("mail.mime.charset",
System.getProperty("mail.charset", "ISO-8859-15"));
getProperty("smtp.charset") ||
System.getProperty("mail.charset") ||
"ISO-8859-15");
}
this.setAuthentication(getProperty("smtp.username"),