Could you tell me how sending an email in a zk Composer ?
I use the Mail plugin which works in a controller but doesn't work in a composer
Thanks you in advance
My code in the composer
import grails.plugin.mail.MailService;
....
void onClick_mailButton(Event e) {
//Envoi mail
sendMail {
to demandeInstance.email
subject "Demande de compte GDA"
body "Votre demande de compte GDA pour l'association "+demandeInstance.libelle+" a bien été prise en compte, le Conseil général du Val d'Oise vous remercie"
}
}
And the error message
No signature of method: vdo.extgda.demande.CreateComposer.sendMail() is applicable for argument types: (vdo.extgda.demande.CreateComposer$_onClick_mailButton_closure2) values: [vdo.extgda.demande.CreateComposer$_onClick_mailButton_closure2@149c510f]
Possible solutions: findAll()