Closed shresthaankit7 closed 5 years ago
Hello @shresthaankit7
Did you solve the problem?
In case of someone came here with that issue, I had the same problem in a small project which only sends emails and it was because I forgot to apply the gsp plugin:
apply plugin:"org.grails.grails-gsp"
Question solved
Hello, I've used "org.grails.plugins:mail:2.0.0.RC6" and "org.grails:grails-plugin-gsp" for send emails using grails3. I've called my mail sending service from another controller with the required params and I've kept the required gsp under the grails-app/views/ folder.
The mail sending service is:
The gsp page when my params are mapped is under grails-app/view/email/JobFail.gsp.
Everything in the development environment(using IntelliJ) is working fine but in the production environment, I'm getting a weird issue like: Could not locate mail body /email/JobFail. Is it in a plugin? If so you must pass the plugin name in the [plugin] variable