How to hook into the email sending process with events
If you write your own extensions, from v0.7.1+ you can hook into the email sending process with the following events:
- fooman_emailattachments_before_send_order
- fooman_emailattachments_before_send_invoice
- fooman_emailattachments_before_send_shipment
- fooman_emailattachments_before_send_creditmemo
The dispatch call looks like this:
Mage::dispatchEvent('fooman_emailattachments_before_send_order',
array(
'update'=> false,
'template' => $mailTemplate,
'object' => $this
)
);