How to assign a email template for TODO doctype when Reference Type is a particular doctype

You need to implement a logic where an email is triggered whenever a ToDo document is saved. For this, you have to create a server script. I have already provided the documentation for reference.

Here is another useful reference for setting up the server script to use frappe.sendmail:

Email Queue, Email CC, and Recipients Discussion