how to push mail into mailspool in odoo framework using python code and how can pool send the mail
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
You can try the following:
template = self.env['email.template'].search[('name', '=', 'Name of email template'))
if not template:
raise exceptions.Warning("Email template not found!")
template.send_mail(record.id, force_send=True)
Setting force_send to True will immediately send the email, whereas if you set force_send to False, the mail will push to the mail queue and be sent later (30min intervals) by a cron job.
HI Andre de Kock Thanks for response,
I Implemented another way,it's working fine .
i will try this approach also
thank you once agian
Glad I could help
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up