apprentice Posted December 28, 2011 Share Posted December 28, 2011 Hi, I receive an error when trying to reset password (I am working in local). I found this other thread with same problem but I do have both password_query.txt & .html files in the mails folder. 1. The error prompts when entering the email to reset a password, I am actually doing this because it seems my login does not work: Hay 1 error : Error occurred when sending the e-mail. 2. Emails configuration at the BO end (BackOffice > Preferences > Emails) is: own SMTP (tried mail () PHP but it doesnt work either): Mail domain: left it blank. SMTP server: smtp.1and1.es SMTP user: [email protected] SMTP password: my email password. Encryption: SSL Port: 465 (tried 587 too) Thank you for your help apprentice Link to comment Share on other sites More sharing options...
Mike Kranzler Posted December 28, 2011 Share Posted December 28, 2011 Hi apprentice, I'm a little confused. How are you accessing your Back Office if you are having password issues? -Mike Link to comment Share on other sites More sharing options...
apprentice Posted December 28, 2011 Author Share Posted December 28, 2011 Hi Mike, Thank you for the reply. Sorry, I didn't make myself clear. I can access BO, that's not a problem, the problem is while testing the Front Office, I have accounts created to test if the store works, I tried to confirm a basket with bankwire and the logging didn't work for that account, so I tried to reset password and I got that error. I changed the password in MySQL and now I can log in but still I wanted to check the restore password function and it is not working. The code in PasswordController is this one, if it helps: { if (Mail::Send((int)(self::$cookie->id_lang), 'password_query', Mail::l('Password query confirmation'), array('{email}' => $customer->email, '{lastname}' => $customer->lastname, '{firstname}' => $customer->firstname, '{url}' => self::$link->getPageLink('password.php', true).'?token='.$customer->secure_key.'&id_customer='.(int)$customer->id), $customer->email, $customer->firstname.' '.$customer->lastname)) self::$smarty->assign(array('confirmation' => 2, 'email' => $customer->email)); else $this->errors[] = Tools::displayError('Error occurred when sending the e-mail.'); } Another questions is, could I change the 'Error occurred when sending the e-mail.' message to the current language I am using in my website or will that create issues? I am also not getting confirmation emails when placing the orders, is that normal behaviour while working in local? Thank you Link to comment Share on other sites More sharing options...
Mike Kranzler Posted December 28, 2011 Share Posted December 28, 2011 Ahhh I see. The first thing I would ask is that you post each issue in a separate thread per the rules of the forum, because users come to this forum every day to search for answers and its much easier if the answer they're looking for isn't buried somewhere in a discussion about something completely different. As for the password issue, is this a new installation? And was this working in the past, or has it always been broken for you? -Mike Link to comment Share on other sites More sharing options...
apprentice Posted December 28, 2011 Author Share Posted December 28, 2011 Thanks Mike, will do. Focusing on the password issue, I was on a previous version (cant remember which, maybe 1.4.4) and I never had problems with logins so I never tried before the password restore option. I just migrated to 1.4.6.2 and came across this issue now. Link to comment Share on other sites More sharing options...
apprentice Posted December 28, 2011 Author Share Posted December 28, 2011 I just tried this and it didn't solve the problem either: 1. In /tools/swift/Swift/Message.php line #79 Change $this->setFrom(""); To $this->setFrom("[email protected]"); 2. In /tools/swift/Swift.php after line 370 if (!($has_reply_to = $message->getReplyTo())) $message->setReplyTo($from); Add the following code: if (!$has_reply_to[0]) $message->setReplyTo($from->getAddress()); 3. In /tools/swift/Swift/Plugin/MailSend.php line # 159 Add $params = ""; http://www.presto-changeo.com/en/content/9-fix-email-problems Link to comment Share on other sites More sharing options...
apprentice Posted December 30, 2011 Author Share Posted December 30, 2011 I solved this, after installing the prestashop on the host server I played around with the Email configuration in BO and mail () PHP did the trick. It is working fine now, all emails now work and password retrieval is active. 1 Link to comment Share on other sites More sharing options...
Mike Kranzler Posted December 30, 2011 Share Posted December 30, 2011 Thanks apprentice, I'm glad you were able to get this working! Happy New Year! -Mike Link to comment Share on other sites More sharing options...
advait Posted January 9, 2012 Share Posted January 9, 2012 Hi I've had a problem with recovering customer passwords since version 1.4.3, I just upgraded to 1.4.6.2 hoping that it would fix the problem but it didn't. The password recovery email that is sent contains the following link... http://www.shopname.com/password.php?token={path_token}&id={id_customer} ...so I see that the id_customer is not being inserted from the db. Have you an idea how can I fix this? Thanks! Advait Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 16, 2012 Share Posted January 16, 2012 Hi advait, Have you already tried apprentice's suggestions above? -Mike Link to comment Share on other sites More sharing options...
Raitis Posted January 27, 2012 Share Posted January 27, 2012 Hi I've had a problem with recovering customer passwords since version 1.4.3, I just upgraded to 1.4.6.2 hoping that it would fix the problem but it didn't. The password recovery email that is sent contains the following link... http://www.shopname....d={id_customer} ...so I see that the id_customer is not being inserted from the db. Have you an idea how can I fix this? Thanks! Advait Hello! I have the same problem! if anyone has solved the problem? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 27, 2012 Share Posted January 27, 2012 Hi Raitis, As I asked advait earlier, have you already tried the suggestions posted above? -Mike Link to comment Share on other sites More sharing options...
suatje Posted May 2, 2012 Share Posted May 2, 2012 Dear Mike i am having same problem running prestashop 1.4.6.2 I can`t use the php() solution as i am using gmail smtp. I did find this threat :http://www.prestashop.com/forums/topic/129946-solved-mail-remind-password-not-work/page__p__815247__hl__password%20|%20recovery__fromsearch__1#entry815247 but very little explanation about how to tackle the situation. Any suggestions?? Link to comment Share on other sites More sharing options...
suatje Posted May 2, 2012 Share Posted May 2, 2012 I solved it. template was missing which resulted in an error password_query.html was missing. uploaded it with ftp and voila it is working 1 Link to comment Share on other sites More sharing options...
Prestawood Posted December 31, 2012 Share Posted December 31, 2012 Haha! Really, password_query.html template from mails was missing. I'm downloaded my version of PrestaShop 1.4.9 from here, unarchived and uploaded .html and .txt files via FTP. All is working now! Thank you suatje for ideea! Link to comment Share on other sites More sharing options...
PatJ Posted April 9, 2013 Share Posted April 9, 2013 Hi, Thank you Suatje ! I had same problem of password recovery not working on my PS 1.4.9 and the mail template password_query.html and password_query.txt were missing (but I don't know why???). Link to comment Share on other sites More sharing options...
nailandlash Posted August 31, 2015 Share Posted August 31, 2015 Hi there. I have same problem. Also, having problem with email alrets with questions from customers. Tried to change 3files from instructions, used PHP and SMTP and nothing Using godaddy hosting. http://nailandlash.com/password-recovery Link to comment Share on other sites More sharing options...
Thegame7777 Posted September 19, 2015 Share Posted September 19, 2015 I HAVE THIS ISSUE PLEASE HELP ME TO FIX NOW PRESTASHOP 1.6.0.14 Link to comment Share on other sites More sharing options...
akashs Posted February 3, 2016 Share Posted February 3, 2016 i have same problem Link to comment Share on other sites More sharing options...
N N Posted April 6, 2020 Share Posted April 6, 2020 password_query.html template Where to find this for PS 1..1.24 ? 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