1

I'm using sendTransactional() to send emails programmatically. All working fine besides the following line in the email template is not included

  {{inlinecss file="email-inline.css"}}

Any fixes?

1 Answer 1

1

I found it out. It has to include ->setDesignConfig()

So the following code will include CSS file when sending out emails with sendTransactional().

    Mage::getModel('core/email_template')
        ->setDesignConfig(array('area' => 'frontend', 'store' => $storeId))
        ->sendTransactional($templateId, $sender, $recepientEmail, $recepientName, $vars, $storeId)
    ;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.