I tried implementing my feature suggestion from issue https://github.com/grails3-plugins/mail/issues/22 to allow for an easy way to set mail subject and text by a message code, also considering the the already existing locale option from the mail dsl.
Example usage:
mailService.sendMail {
locale user.languageForCorrespondence
subject message('mail.summary.subject')
text message('mail.summary.text')
}
I don't think this should be a responsibility for the mail plugin, but rather something the user of the plugin needs to do before calling the sendMail code, but that's my opinion.
I tried implementing my feature suggestion from issue https://github.com/grails3-plugins/mail/issues/22 to allow for an easy way to set mail subject and text by a message code, also considering the the already existing locale option from the mail dsl.
Example usage: