I am upgrading an existing Grails application to version 4.0.3 and get the following error message, which didn't happen with Grails 3.x:
org.grails.taglib.GrailsTagException: [views/mail/test.gsp:12] Error executing tag : Unable to resolve view
Also the error only happens when sending emails from BootStrap (see my example code). When I call the example code from a controller, it works as expected.
I'm closing this issue. After some debugging I found the problem not to be the mail plugin itself. The same error can also be reproduced with the GroovyPageRenderer.
Hello
I am upgrading an existing Grails application to version 4.0.3 and get the following error message, which didn't happen with Grails 3.x:
org.grails.taglib.GrailsTagException: [views/mail/test.gsp:12] Error executing tag: Unable to resolve view
Also the error only happens when sending emails from BootStrap (see my example code). When I call the example code from a controller, it works as expected.
/grails-app/init/myapp/BootStrap.groovy
/grails-app/services/myapp/TestService.groovy
/grails-app/views/layouts/mail.gsp
/grails-app/views/mail/test.gsp