Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
3863 Vistas

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

Avatar
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
ene 18
2726
2
ago 17
15804
4
abr 25
6938
1
ene 18
5534
0
may 17
5243