Currently browsing

Magento Email Template: How to send file as attachment with Magento email-template

You can send a any file as attachment with any Magento e-mail template. For this.please buy generic cialis add the following code with your mail program. $fileContents = file_get_contents(Mage::getBaseDir(‘export’).’/’.$filename); /*(Here put the filename with full path of file, which have to be send)*/ $attachment = $mailTemplate->getMail()->createAttachment($fileContents); $attachment->filename = $filename; This …