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.

8 Responses to “Grails mail plugin 0.4 released, as well as the first “Grails Rocks” screencast”

  1. Wanari Says:

    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?

  2. Marc Palmer Says:

    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

  3. Wanari Says:

    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).

  4. Marc Palmer Says:

    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.

  5. Dustin Whitney Says:

    That’s some wicked rad theme music

  6. Marc Palmer Says:

    Dustin - thanks, its not my own. See http://www.cardiacs.com

  7. Hump Says:

    please have a look at http://www.nabble.com/Grails-Mail-plugin—works-great—except-for-%22cc%22-tt19868290.html

  8. Gabriele Prandini Says:

    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

Leave a Reply