Frens Posted February 10, 2012 Share Posted February 10, 2012 Hello, In the all the mails to customer (to admin are good ), where normally the name from the customer (above in the email) I got now a number , like To: RnGdfTREZWJ0d2Vlzhhfrcw== someone one idea ? In the BO , FO and database the name are good spell edit I inspect it twice , the error come after upgrading from 1.4.6.2 to 1.4.7.0 There is also an error wen will send a test mail in BO Link to comment Share on other sites More sharing options...
JohnAc Posted March 14, 2012 Share Posted March 14, 2012 Hy. I already a similar post but is a fresh one so I will ask you if you manage to solve this problem since I get the same one. Thank you Link to comment Share on other sites More sharing options...
Frens Posted March 14, 2012 Author Share Posted March 14, 2012 Hi, If you wait a moment someone help you.............. Link to comment Share on other sites More sharing options...
AKJV Posted March 14, 2012 Share Posted March 14, 2012 This issue and solution can be found in the bugtracker: http://forge.prestashop.com/browse/PSCFI-4931 You can download the new version of /classes/Mail.php from the SVN or else modify your current version: Change line 105: $to_list->addTo($addr, base64_encode($to_name)); into: $to_list->addTo($addr, '=?UTF-8?B?'.base64_encode($to_name).'?='); And line 111: $to = new Swift_Address($to, base64_encode($toName)); into: $to = new Swift_Address($to, '=?UTF-8?B?'.base64_encode($toName).'?='); That should solve this problem. Link to comment Share on other sites More sharing options...
senolage Posted October 3, 2012 Share Posted October 3, 2012 @AKJV, this fix is probably working if you're using PHPMailer to send e-mails from the store. I'm using Google Apps and to improve the e-mail solution I'm using smtp to send e-mails. With that, the "to" field would look something like: '=?UTF-8?B?ASamsdklamsdASDI?=' I've removed all encoding (both base64 and other strings used in concatenation) and it then works fine. I haven't tested with the latest version of PrestaShop (1.5) but this is working nicely now in 1.4.9. Regards, Dinis Link to comment Share on other sites More sharing options...
mir-aus Posted October 30, 2012 Share Posted October 30, 2012 still I have same problem with 1.4.9, any suggestion! Link to comment Share on other sites More sharing options...
mir-aus Posted October 30, 2012 Share Posted October 30, 2012 I have PS 1.4.9 and on Mail.php I have : $to_list->addTo($addr, '=?UTF-8?B?'.base64_encode($to_name).'?='); $to = new Swift_Address($to, '=?UTF-8?B?'.base64_encode($toName).'?='); Please help to fix my problem ( like: '=?UTF-8?B?ASamsdklamsdASDI?=') Link to comment Share on other sites More sharing options...
senolage Posted October 30, 2012 Share Posted October 30, 2012 @mir-aus: are you using smtp to send messages? My solution for this issue was to remote the utf8 header and the base64_encode call: $to_list->addTo($addr, $to_name); $to = new Swift_Address($to, $toName); I advise you to try it and get back if this also works for you. Link to comment Share on other sites More sharing options...
mir-aus Posted October 31, 2012 Share Posted October 31, 2012 @mir-aus: are you using smtp to send messages? My solution for this issue was to remote the utf8 header and the base64_encode call: $to_list->addTo($addr, $to_name); $to = new Swift_Address($to, $toName); I advise you to try it and get back if this also works for you. on Smtp. i need use Encryption: SSL or TLS or None Link to comment Share on other sites More sharing options...
mir-aus Posted October 31, 2012 Share Posted October 31, 2012 on Smtp. i need use Encryption: SSL or TLS or None ? Link to comment Share on other sites More sharing options...
senolage Posted October 31, 2012 Share Posted October 31, 2012 That's probably the reason why that issue happens. The smtp server doesn't process the "to" field the same way the internal sendmail would. Since your smtp server already processes the utf8 strings correctly there's no need for the encoding. Hope the solution I presented works as well for you. Link to comment Share on other sites More sharing options...
mir-aus Posted October 31, 2012 Share Posted October 31, 2012 That's probably the reason why that issue happens. The smtp server doesn't process the "to" field the same way the internal sendmail would. Since your smtp server already processes the utf8 strings correctly there's no need for the encoding. Hope the solution I presented works as well for you. before i used: Use PHP mail() function. Recommended; works in most cases but now : Set my own SMTP parameters. For advanced users ONLY you think will help me, also i need use SSL or TLS or None ? for Encryption any suggestion? Link to comment Share on other sites More sharing options...
senolage Posted October 31, 2012 Share Posted October 31, 2012 The SSL, TLS or None depends on the smtp server you're using. For Google's smtp it should be SSL, port 587 but you should probably review the instructions for a "manual smtp configuration" for your smtp server. Link to comment Share on other sites More sharing options...
mir-aus Posted October 31, 2012 Share Posted October 31, 2012 I mean which way is better ? SSL, TLS or None? Link to comment Share on other sites More sharing options...
senolage Posted October 31, 2012 Share Posted October 31, 2012 It really depends on what your smtp server supports. I think the best setup is SSL but it can't be used if your smtp doesn't support it. Link to comment Share on other sites More sharing options...
mir-aus Posted October 31, 2012 Share Posted October 31, 2012 ok, how can i test it work for me? ) Link to comment Share on other sites More sharing options...
senolage Posted October 31, 2012 Share Posted October 31, 2012 I usually test using the "contact" form on my stores. 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