Closed demon101 closed 7 years ago
sending mail code:
asyncMailService.sendMail {
to email
if (ccList){
cc ccList
}
subject subjectString
html(view: "/mails/${viewName}", model: model)
}
One more detail: before setting was
asynchronous.mail.persistence.provider='hibernate'
At result, mail marked as SENT with one attempts
Strange, by the code, it fails during deleting of sent mail. But where is no option asynchronous.mail.clear.after.sent = true And in DB all async_mail_mess rows has mark_delete = false.
For some message id (for example 1111830) I see this error 6 times. But attempts count for the message - 1
Which RDBMS do you use? Which transaction isolation level?
defaultTransactionIsolation: 2 # = java.sql.Connection.TRANSACTION_READ_COMMITTED postgresql:9.4
Fixed 2.0.0.RC5
For some of mails after update from grails 2.4.5 to 3.1.14 errors in logs
compile 'org.grails.plugins:asynchronous-mail:2.0.0.RC4'
Settings
Stack trace: