gpc/grails-mail — pull request #13 by toy (2012-11-06 13:03:08+00:00)
Title: Allow using closure argument in sendMail method

Allow writing:

mailService.sendMail {
it.from 'abc@example.com'
it.to 'def@example.com'
it.subject 'test'
it.text 'some text'
}

instead of:

mailService.sendMail {
from 'abc@example.com'
to 'def@example.com'
subject 'test'
text 'some text'
}

It can be sometimes more convenient and can solve problem with clashing variable names like `subject`.