Grails

Send Mail via Log4j with SMTP Appender

Grails supports sending all log messages(error,fatal etc.) to a support team or to yourself, by email (gmail account), via log4j with SMTP Appender. 1. For this we have to do some configration in Config.groovy as shown below: [groovy] // import SMTPAppender and Log4j Lever classes import org.apache.log4j.net.SMTPAppender import...

by Amit Kumar
Tag: mail
13-Aug-2012

Grails

Configuring multiple senders in Grails Mail plugin

In one of the recent projects, we had to set up a system where emails for different purposes (i.e registration, error reporting etc.) were to be sent out from different email accounts. We were using the Grails Mail plugin which does not provide a clear way to set-up or configure multiple email addresses. With the help of my colleague,...

by Abhishek Tejpaul
Tag: mail
14-Jun-2010