Skip to Content
मेन्यू
This question has been flagged
2 Replies
3913 Views

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

Avatar
Discard
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
Discard
Related Posts Replies Views Activity
0
जन॰ 18
2785
2
अग॰ 17
15884
4
अप्रैल 25
7007
1
जन॰ 18
5610
0
मई 17
5281