The Grails mail plugin provides a convenient DSL for sending email. It supports plain text, html, attachments, inline resources and i18n among other features.
Mail can be sent using the @mailService@ via the @sendMail@ method. Here is an example…
mailService.sendMail {
to "[email protected]","[email protected]"
from "[email protected]"
cc "[email protected]", "[email protected]"
bcc "[email protected]"
subject "Hello John"
text 'this is some text'
}
Please see the User Guide for more information.
The plugin is released under the Apache License 2.0 and is produced under the Grails Plugin Collective.
Issues can be raised via GitHub Issues.
Pull requests are the preferred method for submitting contributions. Please open an issue via that issue tracker link above and create an issue describing what your contribution addresses.
If you are contributing documentation, raising an issue is not necessary.