]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/commands/web/class_WebResendLinkCommand.php
DebugMailer classes extended, again some minor fixes:
[shipsimu.git] / inc / classes / main / commands / web / class_WebResendLinkCommand.php
index c08066adc45a5e36c1ef9fe8a23162b9b6c94289..138c44da3a865742d84bd2e6387490556aa5406a 100644 (file)
@@ -69,6 +69,15 @@ class WebResendLinkCommand extends BaseCommand implements Commandable {
                // 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));
 
@@ -81,11 +90,14 @@ class WebResendLinkCommand extends BaseCommand implements Commandable {
                // 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();
        }
 
        /**