-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not sending mail when I call mailService.sendMail from my controller. #3
Comments
It seems like the issue is with mail configurations i.e.
is transformed into
For now I've implemented a workaround in Mail plugin https://github.com/puneetbehl/grails3mail-plugin/blob/master/src/main/groovy/grails/plugins/mail/MailGrailsPlugin.groovy |
This is related to grails/grails-core#634. |
@jeffbrown I've made workaround in Mail plugin so that we are able send emails. Please click here to see my changes Waiting to hear from you. |
Running into the same thing. I tried to work around this by configuring my own JavaMailSender but the plugin always creates it own. I also added an application.groovy to attempt to use my old config from the 2.3.11 app I am converting, but that gives the same problem. I realize this is probably a larger grails-core issue, but wanted to document some of the attempted work arounds for others. |
Was able to work around this without having to modify the plugin nor build a plugin that runs before the mail plugin. I just added a listener when the application context was setup and fixed the bean.
|
@bbooth Thanks for the work around! Where did you have to put the MailConfig.groovy source code file? Did you have to adapt the ComponentScan somewhere. We tried to put it in src/main/groovy/ but it was not picked up when starting the Grails application with bootRun. |
I added it to my application.yml
|
Not fixed on Grails 3.0.2 although grails/grails-core#634 was fixed |
This bug is fixed on grails 3.0.1 ? |
Solved and working on Grails 3.0.1 with 2.0.0.RC2 ! |
@felansu Thanks for the feedback. |
Here is the link to my sample application https://github.com/puneetbehl/grails3maildemo
The text was updated successfully, but these errors were encountered: