- version: 1.0.1
This extension provides methods to attach documents to Magento emails, i.e. it does not have any configuration or does anything out of the box. You can use it to base your own Magento extensions on it.
Additionally the extensions introduces the following new events to hook into the email sending process:
- vianetz_pdfattachments_email_template_init
- vianetz_pdfattachments_email_send_before
- vianetz_pdfattachments_email_send_after
You can use the following helper method to attach any document to an email, e.g. in the email_send_before event:
Mage::helper('vianetz/pdfattachments')->addAttachmentToEmail(Mage_Core_Model_Email_Template $emailTemplate, $fileContents, $filename);
A sample implementation of the usage of this module can be found in our Advanced Invoice Layout Extension for Magento.
- PHP >= 5.3.6
- Magento >= 1.6.x
Please find the Frequently Asked Questions on our website www.vianetz.com/en/faq.
If you have any issues or suggestions with this extension, please do not hesitate to contact me at https://www.vianetz.com/en/contacts or [email protected].
Christoph Massmann http://www.vianetz.com @vianetz
GNU General Public License v3.0
See also LICENSE file.
(c) since 2008 vianetz
This Library uses Semantic Versioning - please find more information at http://semver.org.