Ejemplo n.º 1
0
 /**
  * Send Moneybookers activation message
  * 
  * @return void
  */
 public static function sendMoneybookersActivation()
 {
     // Register variables
     static::register('platform_name', \XLite\Module\CDev\Moneybookers\Model\Payment\Processor\Moneybookers::getPlatformName());
     $address = \XLite\Core\Auth::getInstance()->getProfile()->getBillingAddress();
     if ($address) {
         static::register('first_name', $address->getFirstName());
         static::register('last_name', $address->getLastName());
     } else {
         static::register('first_name', '');
         static::register('last_name', '');
     }
     static::register('email', \XLite\Core\Config::getInstance()->CDev->Moneybookers->email);
     static::register('id', \XLite\Core\Config::getInstance()->CDev->Moneybookers->id);
     static::register('url', \XLite::getInstance()->getShopURL());
     static::register('language', \XLite\Core\Session::getInstance()->getLanguage()->getCode());
     // Compose and send email
     static::compose(\XLite\Core\Config::getInstance()->Company->site_administrator, '*****@*****.**', 'modules/CDev/Moneybookers/activation');
 }
Ejemplo n.º 2
0
 /**
  * Send Moneybookers activation message
  *
  * @return void
  */
 public static function sendMoneybookersActivation()
 {
     // Register variables
     static::register('platform_name', \XLite\Module\CDev\Moneybookers\Model\Payment\Processor\Moneybookers::getPlatformName());
     $address = \XLite\Core\Auth::getInstance()->getProfile()->getBillingAddress();
     if ($address) {
         static::register('first_name', $address->getFirstName());
         static::register('last_name', $address->getLastName());
     } else {
         static::register('first_name', '');
         static::register('last_name', '');
     }
     static::register('email', \XLite\Core\Config::getInstance()->CDev->Moneybookers->email);
     static::register('id', \XLite\Core\Config::getInstance()->CDev->Moneybookers->id);
     static::register('url', \XLite::getInstance()->getShopURL());
     static::register('language', \XLite\Core\Session::getInstance()->getLanguage()->getCode());
     static::getMailer()->setSubjectTemplate('modules/CDev/Moneybookers/activation/subject.tpl');
     static::getMailer()->setLayoutTemplate('modules/CDev/Moneybookers/activation/body.tpl');
     // Compose and send email
     static::compose(static::TYPE_MONEYBOOKERS_ACTIVATION, static::getSiteAdministratorMail(), '*****@*****.**', 'modules/CDev/Moneybookers/activation');
 }