Created
July 8, 2012 18:24
-
-
Save d6y/3072181 to your computer and use it in GitHub Desktop.
Boot settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javax.mail._ | |
| def optionalAuth: Box[Authenticator] = for { | |
| user <- Props.get("mail.user") | |
| pass <- Props.get("mail.password") | |
| } yield new Authenticator { | |
| override def getPasswordAuthentication = new PasswordAuthentication(user,pass) | |
| } | |
| Mailer.authenticator = optionalAuth |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment