Closed demon101 closed 7 years ago
in dev we use overrideAddress="development-test@xxx.xx" settings
How is it possible to save a message without recipient into DB?
It is impossible to update a GORM entity if it is not valid. So it is impossible to change status.
I got the bug on the test system. Nobody change data in db manualy
11 февр. 2017 г. 12:49 пользователь "Vitalii Samolovskikh" < notifications@github.com> написал:
It is impossible to update a GORM entity if it is not valid. So it is impossible to change status.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kefirfromperm/grails-asynchronous-mail/issues/70#issuecomment-279139075, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTL6E1bE2nxTNOMxRbIsrEJL5Cuc3ZQks5rbaBWgaJpZM4L5iNT .
2.0.0.RC7
For messages without recipient plugin will try to sent it on every attempt Because of atLeastOneRecipientValidator during saving with SENT status its gets error
asynchronous.mail.one.recipient.required
At result, it never change status in DB.
Please, validate message before sending in AsynchronousMailProcessService.processEmailMessage and save in DB with ERROR status if something goes wrong