kefirfromperm / grails-asynchronous-mail

The Grails Asynchronous Mail plugin
http://grails.org/plugin/asynchronous-mail
21 stars 36 forks source link

Messages weren't flushed to the database when send.immediately is false #73

Open tkvw opened 7 years ago

tkvw commented 7 years ago

I think it should honor the useFlushOnSave setting. I also added the possibility to configure it on the builder with flush(true/false).

If you want to see the effect, simply change the send.immediately to false in the example project. The to fields aren't saved to the database.

tkvw commented 7 years ago

Also added configurable mappings options. Your mail can now easily be stored in another datasource.

demon101 commented 7 years ago

For asynchronous.mail.disable=true in some cases AsynchronousMailMessage not stored in DB @kefirfromperm could you include this fix to new version of plugin, please