diff --git a/helma/Mail.js b/helma/Mail.js index a859acef..8c90adeb 100644 --- a/helma/Mail.js +++ b/helma/Mail.js @@ -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"),