[-] FO : #FSCFV-903 : Add Mail confirmation sending when subscribing to the newsletter via Accont creation or edition
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15198 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -422,6 +422,26 @@ class Blocknewsletter extends Module
|
||||
return $this->l('Thank you for subscribing to our newsletter.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Send the confirmation mails to the given $email address if needed.
|
||||
*
|
||||
* @param string $email Email where to send the confirmation
|
||||
*
|
||||
* @note the email has been verified and might not yet been registered. Called by AuthController::processCustomerNewsletter
|
||||
*
|
||||
*/
|
||||
public function confirmSubscription($email)
|
||||
{
|
||||
if ($email)
|
||||
{
|
||||
if ($discount = Configuration::get('NW_VOUCHER_CODE'))
|
||||
$this->sendVoucher($email, $discount);
|
||||
|
||||
if (Configuration::get('NW_CONFIRMATION_EMAIL'))
|
||||
$this->sendConfirmationEmail($email);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Send an email containing a voucher code
|
||||
* @param string $email
|
||||
|
||||
Reference in New Issue
Block a user