Jump to content

error sending email by password recovery (front office)


WEMS

Recommended Posts

prestashop is in two language, german and english.

Since some days we have the error message "error sending email" in "german only" when customers are trying to reset they password in the german version. English version reset password are working well.

Edited by WEMS (see edit history)
Link to comment
Share on other sites

Have you checked to make sure mails/de/password_query.html and mails/de/password_query.txt exist? Also, make sure there's a line like the following in mails/de/lang.php:

$_LANGMAIL['Password query confirmation'] = 'Password query confirmation';
Link to comment
Share on other sites

I confirm that both files exists and also the line is mails/de/lang.php but in german: $_LANGMAIL['Password query confirmation'] = 'Passwort-Bestätigung';

 

The exaxctely translation for 

  1. Fehler beim Senden der E-Mail aufgetreten.

 is Error by sending email occurred.

Link to comment
Share on other sites

That error message is on line 60 of controllers/front/PasswordController.php and it is displayed when the Mail::Send function returns false. The following are reasons that error message could occur:

 

1. The files mails/de/password_query.html or mails/de/password_query.txt are missing

2. The file mails/de/lang.php is missing

3. An exception occurs while Swift is attempting to send the email

 

We've ruled out 1 and 2, though I forgot to ask whether you've overridden the email templates in your theme. Does themes/<your_theme>/mails/de/password_query.html or password_query.txt exist? If so, make sure themes/<your_theme>/mails/de/lang.php also exists with the 'Password query confirmation' translation.

Link to comment
Share on other sites

  • 3 months later...

Hi,

 

while testing emails from Advanced Settings >> Emails - Test mails are working fine. but front end when my customers using Forgot Password - the retreive password are not sending but showing an error.. 

 

FORGOT YOUR PASSWORD?

There is 1 error

  1. An error occurred while sending the email.

Please enter the email address you used to register. We will then send you a new password.

 

Can any one please help me.

Link to comment
Share on other sites

Check to make sure mails/<lang_iso>/password_query.html and pasword_query.txt exist for all languages and that mails/<lang_iso>/lang.php contains a line like the following in all the language folders:

$_LANGMAIL['Password query confirmation'] = 'Password query confirmation';

Change the second 'Password query confirmation' as needed for each language.

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