Provides integration with Postmark mail service

  • Tags: /
  • Latest: 0.2
  • Last Updated: 03 May 2010
  • Grails version: 1.3.0.RC1 > *
  • Authors: null
0 vote
Dependency:
compile ":postmark:0.2"

 Documentation

Summary

Installation

grails install-plugin postmark

Description

This plugin provides an API with almost exact parity to the Grails Mail plugin. Installing this plugin replaces the Mail plugin's sendMail method with it's own. Doing so allows use of Postmark. without changing any code in your app or in the plugins your app depends on.

Postmark is a service that takes care of the problems that could happen with delivering email (spam filters, etc) and provides additional montoring for deliverability of the messages.

It does not support attachments as Postmark doesn't provide that capability. If attachments are used, it will be logged as an error and continue.

To install:

grails install-plugin postmark

To configure, add to your Config.groovy:

postmark {
        apikey = "Your API Key"
    }

If you wish to utilize the tagging feature of Postmark, this plugin adds a new call to the sendMail method, tag:

sendMail {
    to "email@example.com"
    tag "Registration"
}

If any plugins in your project use the mail plugin, they will automatically be switched to use Postmark functionality instead.