- magento send email with attachment
- magento troubleshooting
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 will send specified file as attachment with specified email template
If you need any Magento related support; please contact us at [email protected]