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 {
override def getPasswordAuthentication =
new PasswordAuthentication(user, password)
})
Tim