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:
parent
a4811de1e0
commit
d0ede5de85
1 changed files with 5 additions and 1 deletions
|
@ -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"),
|
||||
|
|
Loading…
Add table
Reference in a new issue