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 …

Send Email Attachments Using Zend_Mail Magento

Files can be attached to an e-mail using the createAttachment() method. The default behavior of Zend_Mail is to assume the attachment is a binary object (application/octet-stream), that it should be transferred with base64 encoding, and that it is handled as an attachment. These assumptions can be overridden by passing more …