$emailTemplate = Mage::getModel('core/email_template')
->loadDefault('test_template');
$emailTemplateVariables = array();
$emailTemplateVariables['test'] = 'Branko';
$emailTemplateVariables['name'] = 'Ajzele';
$emailTemplateVariables['reviewurl'] = Mage::getUrl('test/index/review');
echo $processedTemplate = $emailTemplate->getProcessedTemplate($emailTemplateVariables);
$emailTemplate->send('[email protected]','John Doe', $emailTemplateVariables);
output echo
It is time to review Branko
Hi Ajzele
Click this Make a Review
error
2015-06-17T10:17:10+00:00 ERR (3):
exception 'Exception' with message 'This letter cannot be sent.' in /var/www/servicecenters/app/code/local/Aschroder/SMTPPro/Model/Email/Template.php:40
Mage::app()->getStore()->getStoreId()
in last parameter$emailTemplate->send('[email protected]','John Doe', $emailTemplateVariables,Mage::app()->getStore()->getStoreId());