跳至內容
選單
此問題已被標幟
2 回覆
3971 瀏覽次數

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
2877
2
8月 17
16068
4
4月 25
7126
1
1月 18
5690
0
5月 17
5413