[Lift] Re: how do you set system properties in lift?

2009-09-08 Thread Tim Nelson
You need to set system properties: System.setProperty(mail.smtp.starttls.enable,true); System.setProperty(mail.smtp.host, host) System.setProperty(mail.smtp.port, 587) System.setProperty(mail.smtp.auth, true) Mailer.authenticator = Full(new Authenticator {

[Lift] Re: how do you set system properties in lift?

2009-09-08 Thread jon
Note that if you're on 1.1-SNAPSHOT you can set customProperties on the Mailer which would allow to use some other configuration mechanism than system property (like Props or Configgy). val props = Map[String,String](mail.smtp.host - ...) Mailer.customProperties = props