Jump to content

WTA: nama customer email "dG9ueSBsZXVuZw=="


webmeup

Recommended Posts

halo.

 

saya lagi coba install PrestaShop, pertanyaannya kenapa email (welcome/awaiting payment, dll) yang dikirim ke customer itu selalu menampilkan "dG9ueSBsZXVuZw==" sebagai nama customer dan bukannya nama sesuai pendaftaran (harusnya kan firstname & last name).

 

saya menggunakan versi 1.4.7.0.

 

Mohon input and advis nya ya.

 

Terima kasih.

Wira

Link to comment
Share on other sites

penasaran, jadinya saya uninstalled PrestaShop nya, lalu reinstall ulang.

 

langsung testing register dummy customer, welcome email yang dikirim oleh Prestashop nya sekarang TO: nya adalah a2VtYWxhIHdpcmFuYXRh (dan di body welcome email nya menampilkan firstname lastname dengan benar ).

 

Haduh haduh.... bagaimana ya ? :unsure:

Link to comment
Share on other sites

Aneh juga, kyk To nya kyk ketuker ma password ?

 

btw, waktu pendaftaran & kirim welcome email, rutinnya ada di Conroller\AuthController.php, persisnya di baris ini

 

if (
!Mail::Send((int)self::$cookie->id_lang, 'account', Mail::l('Welcome!', (int)self::$cookie->id_lang),
array('{firstname}' => $customer->firstname, '{lastname}' => $customer->lastname, '{email}' => $customer->email, '{passwd}' => Tools::getValue('passwd')),
$customer->email, $customer->firstname.' '.$customer->lastname)
)

 

To nya itu yang diisi dari $customer->email (jelas ga mungkin di enkripsi). Sementara data dalam array itu yang dikirim ke template email (mails\en\account.html dan mails\en\account.txt)

Link to comment
Share on other sites

edit /classes/Mail.php baris 105

$to_list->addTo($addr, base64_encode($to_name));

menjadi

$to_list->addTo($addr, '=?UTF-8?B?'.base64_encode($to_name).'?=');

 

dan baris ke 111

$to = new Swift_Address($to, base64_encode($toName));

menjadi

$to = new Swift_Address($to, '=?UTF-8?B?'.base64_encode($toName).'?=');

 

 

sumber: http://forge.prestashop.com/browse/PSCFI-4931

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