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

  • yhs-fullyhosted_003
  • 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

This is the best product I have bought! They have really helped my erection. . For a man with ED, a harder erection can lead to a more satisfying sexual experience. When it comes to hardness, this can help.

If you need any Magento related support; please contact us at [email protected]

Love these ? Each of these medications are Indian FDA approved and are internationally certified, so you know our products are safe.

Comments Closed