public function registeredToCustomer(array $user)
    {
        $store = $this->store->get($user['store_id']);
        $options = $this->store->getConfig(null, $store);
        $store_name = $this->store->getTranslation('title', $this->translation->getLangcode(), $store);
        $base = $this->store->getUrl($store);

        $vars = array(
            '@store' => $store_name,
            '@name' => $user['name'],
            '@order' => "$base/account/{$user['user_id']}",
            '@edit' => "$base/account/{$user['user_id']}/edit",
            '@status' => empty($user['status']) ? $this->translation->text('Inactive') : $this->translation->text('Active')
        );

        $subject = $this->translation->text('Account details for @name on @store', $vars);
        $message = $this->translation->text("Thank you for registering on @store\r\n\r\nAccount status: @status\r\n\r\nEdit account: @edit\r\nView orders: @order", $vars);
        $message .= $this->getSignature($options);

        $options['from'] = $this->store->getConfig('email.0', $store);
        return array($user['email'], $subject, $message, $options);
    }
public function registeredToCustomer(array $user)
    {
        $store = $this->store->get($user['store_id']);
        $options = $this->store->getConfig(null, $store);
        $store_name = $this->store->getTranslation('title', $this->translation->getLangcode(), $store);
        $base = $this->store->getUrl($store);

        $vars = array(
            '@store' => $store_name,
            '@name' => $user['name'],
            '@order' => "$base/account/{$user['user_id']}",
            '@edit' => "$base/account/{$user['user_id']}/edit",
            '@status' => empty($user['status']) ? $this->translation->text('Inactive') : $this->translation->text('Active')
        );

        $subject = $this->translation->text('Account details for @name on @store', $vars);
        $message = $this->translation->text("Thank you for registering on @store\r\n\r\nAccount status: @status\r\n\r\nEdit account: @edit\r\nView orders: @order", $vars);
        $message .= $this->getSignature($options);

        $options['from'] = $this->store->getConfig('email.0', $store);
        return array($user['email'], $subject, $message, $options);
    }
public function registeredToCustomer ( array $ user ) { $ store = $ this -> store -> get ( $ user [ 'store_id' ] ) ; $ options = $ this -> store -> getConfig ( null , $ store ) ; $ store_name = $ this -> store -> getTranslation ( 'title' , $ this -> translation -> getLangcode ( ) , $ store ) ; $ base = $ this -> store -> getUrl ( $ store ) ; $ vars = array ( '@store' => $ store_name , '@name' => $ user [ 'name' ] , '@order' => "$base/account/{$user['user_id']}" , '@edit' => "$base/account/{$user['user_id']}/edit" , '@status' => empty ( $ user [ 'status' ] ) ? $ this -> translation -> text ( 'Inactive' ) : $ this -> translation -> text ( 'Active' ) ) ; $ subject = $ this -> translation -> text ( 'Account details for @name on @store' , $ vars ) ; $ message = $ this -> translation -> text ( "Thank you for registering on @store\r\n\r\nAccount status: @status\r\n\r\nEdit account: @edit\r\nView orders: @order" , $ vars ) ; $ message .= $ this -> getSignature ( $ options ) ; $ options [ 'from' ] = $ this -> store -> getConfig ( 'email.0' , $ store ) ; return array ( $ user [ 'email' ] , $ subject , $ message , $ options ) ; }
Sent to the user when his account has been created
@param array $user
@return array
Sent to the user when his account has been created