Skip to content
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

Unable to send mail via SES in Grails 3 #62

Open
j4y opened this issue Sep 1, 2016 · 1 comment
Open

Unable to send mail via SES in Grails 3 #62

j4y opened this issue Sep 1, 2016 · 1 comment
Assignees

Comments

@j4y
Copy link
Member

j4y commented Sep 1, 2016

This line has been working for years in grails 2.x:

        def mailId = sesMail {
            from sentFrom
            to sendTo
            subject emailSubject
            html markup
        }

``
ERROR grails.app.controllers.myapp.AuthController - No signature of method: myapp.PasswordResetService.sesMail() is applicable for argument types: (myapp.PasswordResetService$_sendIt_closure1) values: [myapp.PasswordResetService$_sendIt_closure1@21620546]
Possible solutions: sesMail(groovy.lang.Closure)
groovy.lang.MissingMethodException: No signature of method: myapp.PasswordResetService.sesMail() is applicable for argument types: (myapp.PasswordResetService$_sendIt_closure1) values: [myapp.PasswordResetService$_sendIt_closure1@21620546]
Possible solutions: sesMail(groovy.lang.Closure)

@j4y
Copy link
Member Author

j4y commented Sep 13, 2016

Here is a way to workaround the issue:

  1. inject sendSesMail
def sendSesMail
  1. use sendSesMail.send
def mailId = sendSesMail.send {...}

@j4y j4y self-assigned this Sep 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant