I have been looking through the Core classes in Magento and observed that there seem to be many ways of sending emails through Magento. Also, I could not find a definitive guide on what to choose and when. Here I'll list my findings and would like to have someone help me with c
- class Mage_Core_Model_Email_Template
- class Mage_Core_Model_Email_Template_Mailer: Looks to be an abstraction of the above class Mage_Core_Model_Email_Template since it creates an instance of the above class in the send() method.
- class Mage_Core_Model_Email: Looks to be a completely separate implementation without any relation to any of the above classes.
What should help me decide which of these classes to use? and when? What are the benefits / limitations of using each?
My use case: I am looking to send an email from the admin backend. A report to be sent to the admin of the site of all products that have been flagged by users (flagging functionality has been custom built in the frontend and a listing grid in the backend too. But the admin also wants a daily report)
But, besides this I would also like to know when would each of these classes be used and what would be the considerations taken while making this decision?
Thanks!