Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
3976 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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šit
Related Posts Odpovědi Zobrazení Aktivita
0
led 18
2886
2
srp 17
16079
4
dub 25
7144
1
led 18
5693
0
kvě 17
5422