Skip to content

Instantly share code, notes, and snippets.

@bryanchug
Created October 15, 2012 09:08
Show Gist options
  • Save bryanchug/3891589 to your computer and use it in GitHub Desktop.
Save bryanchug/3891589 to your computer and use it in GitHub Desktop.
Grails Config.groovy mail config snippet to connect SMTP to Gmail
grails {
mail {
host = "smtp.gmail.com"
port = 465
username = "username@gmail.com"
password = "password"
props = ["mail.smtp.auth":"true",
"mail.smtp.socketFactory.port":"465",
"mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
"mail.smtp.socketFactory.fallback":"false"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment