New Customer receives Admin Emails

  • Posts: 36
  • Thank you received: 0
11 years 3 weeks ago #97138

Upgraded to latest version of Hikashop a few days ago.

Ever since, new users registering are receiving the Admin email as well as their own:

"Account Details for <some_user> at https://<some_domain>/

"Hello administrator, A new user '<some_user>', username '<Username>', has registered at https://<some_domain>/.

This email is in addition to the email the user should receive:

"Hi <some_user>,
Thank you for registering at https://<some_domain>/.
Your account must be activated by clicking on the link below and............ etc"

The admin receives the admin email correctly.

I cannot find the point where the misdirected admin email occurs. All I know is that the user receives an email where the "To" field has their email and the admin's email address.

Thanks,
Ric

PS: The only other significant change is the move to SSL???

Last edit: 11 years 3 weeks ago by ricm.

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
11 years 3 weeks ago #97140

That bug has already been found and corrected on our end and the fix will be in the next version of HikaShop.

You can fix it by add the line:
$mailClass = hikashop_get('class.mail');

after:
if($params->get( 'mail_to_admin', '0')){

and changing the code:
$mail->dst_name = $mail->from_name;
$mail->dst_email = explode(',',$mail->from_email);

to:
$mail->dst_email = explode(',',$config->get('from_email'));

in the file administrator/components/com_hikashop/classes/user.php

The following user(s) said Thank You: ricm

Please Log in or Create an account to join the conversation.

  • Posts: 36
  • Thank you received: 0
11 years 3 weeks ago #97146

Wow!

Your support has obviously reached the dizzy heights whereby the answer is found before the question! Cause and effect may never be the same again...

Simply brilliant!
Ric

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum