* A mailer class for debugging purposes only. This class will print the
* prepared mail out and will not send it to the recipient.
*
- * @author Roland Haeder <webmaster@ship-simu.org>
+ * @author Roland Haeder <webmaster@shipsimu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
* @license GNU GPL 3.0 or any newer version
- * @link http://www.ship-simu.org
+ * @link http://www.shipsimu.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
$mailerInstance->setApplicationInstance($applicationInstance);
// Set template name
- $mailerInstance->setTemplateName('resend_link');
+ $mailerInstance->setTemplateName($templateName);
// Return the instance
return $mailerInstance;
if (!$recipientInstance instanceof ManageableMember) {
// Invalid entry found!
throw new InvalidInterfaceException(array($this, 'ManageableMember'), self::EXCEPTION_REQUIRED_INTERFACE_MISSING);
- }
+ } // END - if
// User class found, so entry is valid, first load the template
$this->loadTemplate($templateName);
$responseInstance = $this->getApplicationInstance()->getResponseInstance();
// Transfer the data to the response
- $this->getTemplateInstance()->transferToResponse($responseInstance);
+ $templateInstance->transferToResponse($responseInstance);
} // END - foreach
} // END - foreach
}
$templateInstance->compileTemplate();
// Assign this template with variable
- $templateInstance->assignTemplateWithVariable('mail_debug', 'content');
+ $templateInstance->assignTemplateWithVariable('mail_debug', 'main_content');
// Load header template
$templateInstance->loadCodeTemplate('header');