跳至内容
菜单
此问题已终结
2 回复
3935 查看

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

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
0
1月 18
2801
2
8月 17
15983
4
4月 25
7052
1
1月 18
5625
0
5月 17
5330