Skip to Content
Menú
This question has been flagged
2 Respostes
3866 Vistes

How can I create mass(resend) mail for all failed emails.

Avatar
Descartar
Best Answer

Hi,

The above link i have commented seems to be of v8. As you want in v10, you can use this code in your function or from a cron job

mail_failed_list = self.env['mail.mail'].search([('state', '=', 'exception')])
for failed_mail in mail_failed_list:
failed_mail.state = 'outgoing'

Thanks

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de gen. 18
2738
2
d’ag. 17
15807
4
d’abr. 25
6945
1
de gen. 18
5535
0
de maig 17
5249