WEMS Posted November 3, 2016 Share Posted November 3, 2016 (edited) 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 November 3, 2016 by WEMS (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted November 3, 2016 Share Posted November 3, 2016 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 More sharing options...
WEMS Posted November 3, 2016 Author Share Posted November 3, 2016 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 Fehler beim Senden der E-Mail aufgetreten. is Error by sending email occurred. Link to comment Share on other sites More sharing options...
rocky Posted November 3, 2016 Share Posted November 3, 2016 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 More sharing options...
WEMS Posted November 3, 2016 Author Share Posted November 3, 2016 I confirm that the 3 files also exits in the Template folder and that the line is written. Link to comment Share on other sites More sharing options...
rocky Posted November 3, 2016 Share Posted November 3, 2016 That leaves only number 3 left. Can you go to the Advanced Parameters > Logs tab in the Back Office and see if there are any Swift Errors or anything else related to the password query emails there? Link to comment Share on other sites More sharing options...
WEMS Posted November 3, 2016 Author Share Posted November 3, 2016 Absolutely… Swift Error: Expected response code 250 but got code \"554\", with message \"554 5.7.1 Spam not welcome!\r\n\" There are many times the same error mesasage Link to comment Share on other sites More sharing options...
rocky Posted November 3, 2016 Share Posted November 3, 2016 There's your problem. For some reason, your German password query emails are being classified as spam, whereas your English ones are not. Can you ask your host why they are being classified as spam? Link to comment Share on other sites More sharing options...
WEMS Posted November 3, 2016 Author Share Posted November 3, 2016 Thanks for your Help! I totally agree with you and will take care this with the Hosting Provider of the mail. Link to comment Share on other sites More sharing options...
WEMS Posted November 7, 2016 Author Share Posted November 7, 2016 Issue solved with Mail Hosting Server. They have some anti spam settings that was done 2 Weeks ago. Link to comment Share on other sites More sharing options...
sainettech Posted February 25, 2017 Share Posted February 25, 2017 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 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 More sharing options...
rocky Posted February 25, 2017 Share Posted February 25, 2017 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now