Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
4128 Visninger

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

Avatar
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
jan. 18
3022
2
aug. 17
16285
4
apr. 25
7308
1
jan. 18
5817
0
maj 17
5594