, sendMail, , . sendMail , , , , builder, . , , , .
, , , , , - , ββ , . , to(), to MailService, .
, .
service.sendMail {it->
it.to "foo@example.org"
it.subject "Registration Complete"
it.body view:"/foo/bar", model:[user:new User()]
}
sendMail :
def sendMail(closure) {
closure(this)
}