Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
3979 Visualizações

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

Avatar
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
jan. 18
2892
2
ago. 17
16085
4
abr. 25
7154
1
jan. 18
5696
0
mai. 17
5427