Jump to content

Automatically send password regeneration e-mail to customer


beoutside

Recommended Posts

Hello,

The customers of our shops can't register themsleves. They have to send us a message, we create their profile on an ERP and it is sent to Prestashop. Thus they have to do the "forgotten password" procedure to have a password.

In a few days, I am going to enter a load of customers so I would like to send them all the forgotten password e-mail. That way that they can click the regeneration link and have a password.

Does someone know if there's an automatic way of doing that ? please

I wouldn't like to enter every e-mail on the forgotten password page.

Prestashop : 1.6.1.10

Link to comment
Share on other sites

Hi,

 

Thank you. I found the url to create on the password controller :

                        '{url}' => $this->context->link->getPageLink('password', true, null, 'token='.$customer->secure_key.'&id_customer='.(int)$customer->id)

The secure key and id are in the database on the customer table so that would be :

https://www.mywebsite.com/the-regeneration-page-name?token=the-secure-key&id_customer=the-customer-id

Link to comment
Share on other sites

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...