final String mailUser = settings.getString(Keys.mail.username, null);\r
final String mailPassword = settings.getString(Keys.mail.password, null);\r
final boolean smtps = settings.getBoolean(Keys.mail.smtps, false);\r
+ final boolean starttls = settings.getBoolean(Keys.mail.starttls, false);\r
boolean authenticate = !StringUtils.isEmpty(mailUser) && !StringUtils.isEmpty(mailPassword);\r
String server = settings.getString(Keys.mail.server, "");\r
if (StringUtils.isEmpty(server)) {\r
props.setProperty("mail.smtp.port", String.valueOf(port));\r
props.setProperty("mail.smtp.auth", String.valueOf(authenticate));\r
props.setProperty("mail.smtp.auths", String.valueOf(authenticate));\r
+ props.setProperty("mail.smtp.starttls.enable", String.valueOf(starttls));\r
\r
if (isGMail || smtps) {\r
props.setProperty("mail.smtp.starttls.enable", "true");\r