- Posts: 36
- Thank you received: 0
New Customer receives Admin Emails
13 years 5 months ago - 13 years 5 months ago #97138
by ricm
New Customer receives Admin Emails was created by ricm
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???
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: 13 years 5 months ago by ricm.
Please Log in or Create an account to join the conversation.
13 years 5 months ago #97140
by nicolas
Replied by nicolas on topic New Customer receives Admin Emails
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
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.
13 years 5 months ago #97146
by ricm
Replied by ricm on topic New Customer receives Admin Emails
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
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.195 seconds