Grails mail plugin 0.4 released, as well as the first “Grails Rocks” screencast
I released version 0.4 of the grails-mail plugin in the Grails plugin repo the other day, but have not posted about it as I’ve been busy working on-site. I’ve also been putting together a screencast that shows how to use the plugin in the most basic scenario and also render content from GSPs from within services.
To install the plugin, which adds support for rendering the mail body from a GSP from within a controller, service or job, run: grails install-plugin mail
Full docs for the mail plugin are here.
To view the “Using the Grails mail plugin” screencast, click on the thumbnail or go to the fledgling “Grails Rocks” page.
This is the first Grails Rocks screencast, but I hope to do many more. The next one is already planned, for the forthcoming release of the Email Confirmation plugin - which was dependent on this mail plugin 0.4 release.
September 26th, 2008 at 12:37 pm
This plugin is very interesting, many thanks for the contribution
i think many people will adopt it, i have a few questions about it :
1- Is it possible to load mail sender configuration from database using GORM?
2- Is mail sending synchronous or asynchronous?
September 26th, 2008 at 1:51 pm
Hi Wanari -
Let me clarify - grails-mail is not “my” plugin, its an effort by Jeff Brown, Graeme Rocher and myself to just get some quick mail mechanisms together for Grails.
As for your questions:
1) I’m not sure what you mean by “mail sender configuration”. It is unusual for applications to send mail to multiple SMTP servers…
2) synchronous currently
September 27th, 2008 at 4:10 am
Hi Marc
Thanks for the clarification and the answers!
For the question 1) i meant the scenario where the smtp configuration is available on a web view. The goal is to provide these settings to the end user/sysadmin for a later change (changed password, changed server name, etc.) without letting them mess with Config.groovy (and maybe without the need to restart webap too).
September 27th, 2008 at 8:06 am
Wanari -
Sorry no the plugin does not support this yet. We need to add a mechanism to supply the remote host info when calling sendMail. I will put it on the todo list.
October 3rd, 2008 at 8:57 pm
That’s some wicked rad theme music
October 5th, 2008 at 9:59 am
Dustin - thanks, its not my own. See http://www.cardiacs.com
October 8th, 2008 at 9:22 am
please have a look at http://www.nabble.com/Grails-Mail-plugin—works-great—except-for-%22cc%22-tt19868290.html
October 15th, 2008 at 8:44 am
Thanks for the this screencast… it helped me… but get a problem with sending email with gsp…
look here: http://www.nabble.com/mime.DefaultAcceptHeaderParser-No-configured-mime-types-found-for-Accept-header-in-Mail-Plugin-td19975623.html