// Update the user class
$userInstance->updateDatabaseField('confirm_hash', $hashedString);
+ // Assign the hash with a template variable
+ $templateInstance->assignVariable('confirm_hash', $hashedString);
+
// Get a mailer class
$mailerInstance = ObjectFactory::createObjectByConfiguredName('mailer_class', array($templateInstance));