[-] BO: You can now disable the email sent after account creation
This commit is contained in:
@@ -72,6 +72,14 @@ class AdminCustomerPreferencesControllerCore extends AdminController
|
||||
'cast' => 'intval',
|
||||
'type' => 'bool'
|
||||
),
|
||||
'PS_CUSTOMER_CREATION_EMAIL' => array(
|
||||
'title' => $this->l('Send an email after registration'),
|
||||
'desc' => $this->l('Send an email with summary account (email, password) after registration.'),
|
||||
'validation' => 'isUnsignedInt',
|
||||
'validation' => 'isBool',
|
||||
'cast' => 'intval',
|
||||
'type' => 'bool'
|
||||
),
|
||||
'PS_PASSWD_TIME_FRONT' => array(
|
||||
'title' => $this->l('Regenerate password'),
|
||||
'desc' => $this->l('Minimum time required to regenerate a password.'),
|
||||
|
||||
@@ -688,6 +688,9 @@ class AuthControllerCore extends FrontController
|
||||
*/
|
||||
protected function sendConfirmationMail(Customer $customer)
|
||||
{
|
||||
if (!Configuration::get('PS_CUSTOMER_CREATION_EMAIL'))
|
||||
return true;
|
||||
|
||||
return Mail::Send(
|
||||
$this->context->language->id,
|
||||
'account',
|
||||
|
||||
Reference in New Issue
Block a user