groovy closure parameters
- by Don
Hi,
The following example of using the sendMail method provided by the grails mail plugin appears in this book.
sendMail {
to "foo@example.org"
subject "Registration Complete"
body view:"/foo/bar", model:[user:new User()]
}
I understand that the code within {} is a closure that is passed to sendMail as a parameter. I also understand…