// Get template instance
$templateInstance = $responseInstance->getTemplateInstance();
+ // Get an application instance
+ $appInstance = $this->getResolverInstance()->getApplicationInstance();
+
+ // Assign the application data with the template engine
+ $templateInstance->assignApplicationData($appInstance);
+
+ // Assign base URL
+ $templateInstance->assignConfigVariable('base_url');
+
// Get a mailer class
$mailerInstance = ObjectFactory::createObjectByConfiguredName('mailer_class', array($templateInstance));
// Add the recipient
$mailerInstance->addRecipientByUserInstance($userInstance);
- // Set subject line from template
- $mailerInstance->setSubjectFromTemplate();
+ // Use subject line from template
+ $mailerInstance->useSubjectFromTemplate();
// Send the email out
$mailerInstance->deliverEmail();
+
+ // Send out notification to admin (depends on settings)
+ $mailerInstance->sendAdminNotification();
}
/**