Skip to Content
Menu
This question has been flagged
2 Replies
4120 Zobrazenia

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

Avatar
Zrušiť
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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
jan 18
3017
2
aug 17
16282
4
apr 25
7302
1
jan 18
5814
0
máj 17
5592