Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
3947 Prikazi

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

Avatar
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
jan. 18
2826
2
avg. 17
16022
4
apr. 25
7081
1
jan. 18
5643
0
maj 17
5375