Tags » Magento

Magento add attachment to email

Hello All,
I have found working code to send email with attachment.

$attachmentFilePath = Mage::getBaseDir('media'). DS.$filpath; //filepath is path of file inside media directory
$mailTemplate = Mage::getModel('core/email_template');
                    $fileContents = file_get_contents($attachmentFilePath);
                    $attachment   = $mailTemplate->getMail()->createAttachment($fileContents,Zend_Mime::TYPE_OCTETSTREAM,Zend_Mime::DISPOSITION_ATTACHMENT,Zend_Mime::ENCODING_BASE64,basename($attachmentFilePath));

$postObject = new Varien_Object();
//Below code require you understandtsthe term used
$mailTemplate->setDesignConfig(array('area' => 'frontend'))
                        $template_id,  //template id of email template
                        array('data' => $postObject)


2015 Imagine Award Finalists Announced

Congratulations to all of these amazing clients and partners!

from Magento Blog http://ift.tt/1JQi6dk


How to Enable Template Path Hints in Magento Frontend

Go to Back-end Admin

System -> Configuration -> Developer -> Set your store (E.g. English) -> Go to Debug tab -> Set Yes option  For Template Path Hints -> Then Save your configuration and check Path Hints in to the front-end.


Top 4 Reasons to select Magento Web Development services

Magento Web Development services are getting popular by the day. This is because Magento is a great platform to build your online store on. It provides you with unbeatable features and enough flexibility to add features using third party extensions. 421 more words

Custom Magento Development

Magento Product Vote Extension

Magento Product Vote will help you to gather statistics about the customer behavior and share comments about the product on social networks, therefore, you can not only improve your product quality but also easily expand your business and your brand. 119 more words


Magento: Enable pdf extension on WYSIWYG

Came across other day the need to upload pdf files through the WYSIWYG tool on Magento. I’ve checked the native functionality and it allows by default only images (jpg, png, gif). 155 more words