Skip to Content
Menu
This question has been flagged
2 Replies
5894 Views

Dear Sir/Mam,

We have got lot of failed mail and we want to send all failed mail at once rather than clicking and sending one by one.
Is there any solution to re-send all failed mail at once. If there is any process to do so please let me know.

Thank You Sir/Mam.

Avatar
Discard
Best Answer

There is an ODOO module.

Check out this link https://www.odoo.com/apps/modules/8.0/wct_email_auto_resend/

Avatar
Discard
Best Answer

Hi,

i think you have to create a automated action using ir.cron then you have to filter out the all failed emails, and then you have to send the mails


Sample cron job,

<record id="ir_cron_scheduler_demo_action" model="ir.cron">
<field name="name">Send Failed Emails</field>
<field name="user_id" ref="base.user_root"/>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field eval="False" name="doall"/>
<field eval="'mail.mail'" name="model"/>
<field eval="'send_failed_mail'" name="function"/>
</record>

Then define a function in the name send_failed_mail.

class SendFailedMails(models.Model):
_inherit = 'mail.mail'

@api.multi
def send_failed_mail(self):      
        mail_failed_list = self.env['mail.mail'].search([('state', '=', 'exception')])
        for failed_mail in mail_failed_list:
        failed_mail.state = 'outgoing'

Hope this will help you.

See this video : https://www.youtube.com/watch?v=yaKn-9A8H8E

Avatar
Discard
Related Posts Replies Views Activity
0
Apr 16
2109
1
Sep 22
1638
0
Nov 21
2496
1
Nov 19
4401
0
Apr 18
2110