Skip to content
This repository has been archived by the owner on Sep 17, 2018. It is now read-only.

Commit

Permalink
Merge pull request ether#284 from absynce/master
Browse files Browse the repository at this point in the history
Add TLS support to SMTP server configuration
  • Loading branch information
Egil Möller committed Jul 18, 2011
2 parents bd3b396 + d6f48ae commit fbb9287
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions infrastructure/net.appjet.ajstdlib/ajstdlib.scala
Expand Up @@ -217,6 +217,7 @@ object email {
val debug = false;

val props = new Properties;
props.put("mail.smtp.starttls.enable", config.smtpStartTls);
props.put("mail.smtp.host", config.smtpServerHost);
props.put("mail.smtp.port", config.smtpServerPort.toString());
if (config.smtpUser != "")
Expand Down
3 changes: 3 additions & 0 deletions infrastructure/net.appjet.oui/config.scala
Expand Up @@ -208,6 +208,9 @@ object config {
@ConfigParam("password for authentication to mail server. Default: no authentication.")
{ val argName = "password" }
def smtpPass = stringOrElse("smtpPass", "");
@ConfigParam("true or false to use starttls (TLS authentication) when connecting to mail server. Default: false.")
{ val argName = "smtpStartTls" }
def smtpStartTls = stringOrElse("smtpStartTls", "false");

// comet
@ConfigParam("prefix for all comet requests. Required to use Comet system.")
Expand Down

0 comments on commit fbb9287

Please sign in to comment.