Here is how you can simply send an email from your Grails Application.
Step 1: In BuildConfig.groovy add the ff code in plugins{} tag,
// Grails mail plugin
compile ":mail:1.0.1"
Step 2: In Config.groovy, add the ff code
grails {
mail {
host = "smtp.gmail.com"
port = 465
username = "sample@gmail.com"
password = "fakeP@SSw0Rd"
props = ["mail.smtp.auth":"true",
"mail.smtp.socketFactory.port":"465",
"mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
"mail.smtp.socketFactory.fallback":"false"]
}
}