Jump to content

Send email to user after activation in BO - 1.4.x


Haithem.SL

Recommended Posts

Hey

 

I'm trying to add that feature  to my website BO but i did not succed

 

Even I modified  toggleStatus Function in the classes/Customer class but it still not work.

public function toggleStatus()
    {
        parent::toggleStatus();
        
        /*Send mail when account is active/inactive */
        
        $vars = array('{firstname}' => $this->firstname, '{lastname}' => $this->lastname, '{email}' => $this->email, '{passwd}' => $password);    
        Mail::Send(intval($cookie->id_lang), 'account_activation', 'Votre compte a été activé', $vars, $this->email, $this->firstname.' '.$this->lastname);
        
        /* Change status to active/inactive */
        return Db::getInstance()->Execute('
        UPDATE `'.pSQL(_DB_PREFIX_.$this->table).'`
        SET `date_upd` = NOW()
        WHERE `'.pSQL($this->identifier).'` = '.(int)$this->id);
    }
Link to comment
Share on other sites

  • 11 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...