Sending emails using the Jinja template
Odoo supports creating dynamic emails through Jinja templates. Jinja is a text-based templating engine used to generate dynamic HTML content. In this recipe, we will create a Jinja email template and then send emails with its help.
For this recipe, we will be using the
my_library module from the previous recipe, Managing activities on documents. We will add the Jinja template to send an email to the borrower to tell them the book is overdue.