Skip to content

Commit afcdac7

Browse files
author
Vitalii Samolovskikh
committed
Configure Grails Asynchronous Mail plugin.
1 parent 27639e4 commit afcdac7

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

grails-app/conf/BuildConfig.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ grails.project.target.level = 1.6
77
grails.project.source.level = 1.6
88
//grails.project.war.file = "target/${appName}-${appVersion}.war"
99

10+
grails.plugin.location."asynchronous-mail" = '../grails-asynchronous-mail'
11+
1012
grails.project.fork = [
1113
// configure settings for compilation JVM, note that if you alter the Groovy version forked compilation is required
1214
// compile: [maxMemory: 256, minMemory: 64, debug: false, maxPerm: 256, daemon:true],

grails-app/conf/Config.groovy

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,17 @@ log4j = {
118118
'org.springframework',
119119
'org.hibernate',
120120
'net.sf.ehcache.hibernate'
121+
122+
// Enable the Asynchronous Mail plugin logging
123+
trace 'grails.app.jobs.grails.plugin.asyncmail', 'grails.app.services.grails.plugin.asyncmail'
124+
125+
// Enable the Quartz plugin logging
126+
debug 'grails.plugins.quartz'
127+
}
128+
129+
grails {
130+
mail {
131+
host = "127.0.0.1"
132+
props=["mail.transport.protocol":"smtp"]
133+
}
121134
}

0 commit comments

Comments
 (0)