sokpet Posted January 13, 2012 Share Posted January 13, 2012 Hi, I have mail alerts installed. If I register from one of my computers (for testing), all mails comes OK But if my client register (same city) with the same email (ofcourse I delete it from BO first), he can register without problems but he never receive Welcome and other mails. And If I try to Recover password with his email (for testing) it comes Error : can not send mail. But if I send a test message via Email tab in BO it comes OK. What is the problem? Is it a module bug? Link to comment Share on other sites More sharing options...
sokpet Posted January 13, 2012 Author Share Posted January 13, 2012 Now it is even more interesting. I checked the case from clients computer and looks like it is real BUG in 1.4.6.2 If during registration process you enter Name or Surname (not email address!!!) with leters like: ñ, ó, etc, then YOU DO NOT get any mail confirmations. If you use standard english letters then everything is OK. Would be nice to get Prestashop Team comments as Spanish is included in main PACK, and this behavior is very strange. Link to comment Share on other sites More sharing options...
sokpet Posted January 14, 2012 Author Share Posted January 14, 2012 Nobody have the same problem with special Spanish letters for name and surname fields? Link to comment Share on other sites More sharing options...
El Patron Posted January 14, 2012 Share Posted January 14, 2012 I tested this on my 1.4.6.2 ps. I was able to get the registration email when I used ñ in the first and last names. However, if the first letter of the name is ñ for example, the first and last name is not propogated below, if you put the ñ as not first character it does propogate the name(s). I test here: http://demov1462.etiendas.co I opened an issue for this situation, which does not address your problem with client not receiving registration email. http://forge.prestashop.com/browse/PSCFI-4682 Link to comment Share on other sites More sharing options...
sokpet Posted January 14, 2012 Author Share Posted January 14, 2012 Thanks for comments elpatron. Althought your issue not exactly the same I am sure it has similar nature. By the way did you try with accents? In my case I have the same problems with accents, means: á, ú, ó, independantly from their position in fisrt and last name. I hope Prestateam at least could say which peace of code is responsable for that, so I could comment or delete it temporary. This is SERIOUIS bug and effects a lot to the shop production. Or at least give me some idea how to bypass it. If none of my customers will receve confirmation emails + I never receive as admin any order confirmation from that type of customers as well. You can imagine the scale of the problem to control this manually... Link to comment Share on other sites More sharing options...
sokpet Posted January 14, 2012 Author Share Posted January 14, 2012 elpatron, I made a test by regestering on your site like Ñáó I did not have problems with propogation but never recieve Welcome message. That just confirms once again that this is a BUG Link to comment Share on other sites More sharing options...
El Patron Posted January 14, 2012 Share Posted January 14, 2012 I retry the test again. Here is the registration form prior to submit: and here is the email: I can't exaplain why you did not receive an email. I checked my server and there are no emails held in the queue. Link to comment Share on other sites More sharing options...
sokpet Posted January 14, 2012 Author Share Posted January 14, 2012 I believe it function well in your test.... If you do not mind I will make another test later on. One thing, I was testing my web on localhost again and all mails works OK, but on server it does not... Is that possible? Link to comment Share on other sites More sharing options...
El Patron Posted January 14, 2012 Share Posted January 14, 2012 I believe it function well in your test.... If you do not mind I will make another test later on. One thing, I was testing my web on localhost again and all mails works OK, but on server it does not... Is that possible? Very possible as they are two different platforms. I will also test later on. The demo willl refresh on the hour so you email will disappear and you can use again. Link to comment Share on other sites More sharing options...
sokpet Posted January 15, 2012 Author Share Posted January 15, 2012 Can not test again as I am still in your DB, anyway, for temporary I had to restrict special letters (ñáóíé) in validate.php as follows line 166 change as follows: return preg_match('/^[a-zA-Z -]+$/', stripslashes($name)); That is not the best bypass at all (If my name has accent or Ñ why should I write it different) but at least all mails and confirmations will function properly. I wonder where prestashop guys when they are needed.... Link to comment Share on other sites More sharing options...
El Patron Posted January 15, 2012 Share Posted January 15, 2012 that test system has been cleared, I had turned off auto-refresh. Have you opened a bug report? I understand you frustration but the developers as ps use the bug reports this is mostly a community thing. Link to comment Share on other sites More sharing options...
sokpet Posted January 15, 2012 Author Share Posted January 15, 2012 Yes here is a bug report link: http://forge.prestashop.com/browse/PSCFI-4688 I hope somebody will find the reason of the issue. Link to comment Share on other sites More sharing options...
sokpet Posted January 15, 2012 Author Share Posted January 15, 2012 So I was investigating again and as a PROBABLE result it looks like there is a conflict of Apache 2.2 (I have 1&1 and they use 2.2) and Prestashop. I do not know where for the moment. Something is not compliant wiith Apache 2.2 according to the hoster. By the way this affects ALL versions..... I have several shops done on PS. At least I checked 1.2, 1.3.6, 1.3.7, 1.4.4.1, 1.4.6.2 I hope prestashop can solve it with appropriate instructions or patch otherwise ALL shops will be affected when their providers change to Apache version 2.2 here is similar bug reported from 6th december 2011. AND NO SOLUTION SO FAR! this is a link http://forge.prestas...owse/PSCFI-4372 Link to comment Share on other sites More sharing options...
sokpet Posted January 17, 2012 Author Share Posted January 17, 2012 Hello to everybody, the issue is solved. just download Mail.php in SVN 1.4 and overwrite it. Now looks like mails function well Special thanks to Francois Gaillard Link to comment Share on other sites More sharing options...
El Patron Posted January 18, 2012 Share Posted January 18, 2012 Great news! If you could change the title to [solved] this will be a great help to other members. Link to comment Share on other sites More sharing options...
tivicrdotcom Posted February 3, 2012 Share Posted February 3, 2012 Hi there fellows, I get the same problem, did you get the error: Warning: mail() [function.mail]: Bad parameters to mail() function, mail not sent. in /home/content/13/8897513/html/tienda/tools/swift/Swift/Plugin/MailSend.php on line 160 Line 160 is: if (!ini_get("safe_mode")) $success = mail($to, $subject, $message, $headers, $params); I will try to use advance email parameters to see if the error goes away, otherwise I'll do the mail.php stuff Link to comment Share on other sites More sharing options...
Recommended Posts