Jump to content

[SOLVED] No welcome email being sent


Recommended Posts

Keep a backup of pl version of account.html and account.txt. Then copy then english (/en/) version of account.html and account.txt to "/mails/pl" folder. Try again ;)

 

Is it "PL" or "pl"? if it is PL, make a trial with lowercase "pl".

 

If it is still not working then we will have to go through debug.

Link to comment
Share on other sites

Keep a backup of pl version of account.html and account.txt. Then copy then english (/en/) version of account.html and account.txt to "/mails/pl" folder. Try again ;)

Did that, but still nothing.

 

It is /pl, sorry for mistake.

Link to comment
Share on other sites

protected function sendConfirmationMail(Customer $customer)
	{
		if (!Configuration::get('PS_CUSTOMER_CREATION_EMAIL'))
			return true;
			
			Mail::Send(
			$this->context->language->id,
			'account',
			Mail::l('Welcome!'),
			array(
			'{firstname}' => $customer->firstname,
			'{lastname}' => $customer->lastname,
			'{email}' => $customer->email,
			'{passwd}' => Tools::getValue('passwd')),
			'[email protected]',
			$customer->firstname.' '.$customer->lastname
			);

		return Mail::Send(
			$this->context->language->id,
			'account',
			Mail::l('Welcome!'),
			array(
				'{firstname}' => $customer->firstname,
				'{lastname}' => $customer->lastname,
				'{email}' => $customer->email,
				'{passwd}' => Tools::getValue('passwd')),
			$customer->email,
			$customer->firstname.' '.$customer->lastname
		);
	}
}

I've added some lines there to be aware if someone registers. But I think it didn't work before the change.

Link to comment
Share on other sites

×
×
  • Create New...