Jump to content

wrong TO name mail customers vers 1.4.7.0


Frens

Recommended Posts

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

  • 1 month later...

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

  • 6 months later...

@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

  • 4 weeks later...

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

@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

@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

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

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

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