[Skip to main content](#vessel-content)

#   New Customer receives Admin Emails

##

- **[ricm](/forum/user/13668-ricm "View ricm's Profile")**
- [![ricm's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13668-ricm "View ricm's Profile") Topic Author
- [ Offline](/forum/user/13668-ricm)

Less More

- Posts: 36
- Thank you received: 0
-
-

13 years 7 months ago -  13 years 7 months ago [\#97138](#97138) by [ricm](/forum/user/13668-ricm "View ricm's Profile")  *[New Customer receives Admin Emails](/forum/3-bug-report/79888-new-customer-receives-admin-emails#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:  &quot;Account Details for  at https:///  &quot;Hello administrator, A new user '', username '', has registered at https:///.  This email is in addition to the email the user should receive:  &quot;Hi , Thank you for registering at https:///. Your account must be activated by clicking on the link below and............ etc&quot;  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 &quot;To&quot; field has their email and the admin's email address.  Thanks, Ric  PS: The only other significant change is the move to SSL???")* was created by *[ricm](/forum/user/13668-ricm "View ricm's Profile")*

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 &lt;some_user&gt; at https://&lt;some_domain&gt;/

"Hello administrator, A new user '&lt;some_user&gt;', username '&lt;Username&gt;', has registered at https://&lt;some_domain&gt;/.

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

"Hi &lt;some_user&gt;,
Thank you for registering at https://&lt;some_domain&gt;/.
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 7 months ago by [ricm](/forum/user/13668-ricm "View ricm's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83OTg4OC1uZXctY3VzdG9tZXItcmVjZWl2ZXMtYWRtaW4tZW1haWxzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

13 years 7 months ago [\#97140](#97140) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[New Customer receives Admin Emails](/forum/3-bug-report/79888-new-customer-receives-admin-emails#97140 "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:  &quot;Account Details for  at https:///  &quot;Hello administrator, A new user '', username '', has registered at https:///.  This email is in addition to the email the user should receive:  &quot;Hi , Thank you for registering at https:///. Your account must be activated by clicking on the link below and............ etc&quot;  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 &quot;To&quot; field has their email and the admin's email address.  Thanks, Ric  PS: The only other significant change is the move to SSL???")*

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-&gt;get( 'mail_to_admin', '0')){

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

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

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

The following user(s) said Thank You: [ricm](/forum/user/13668-ricm "View ricm's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83OTg4OC1uZXctY3VzdG9tZXItcmVjZWl2ZXMtYWRtaW4tZW1haWxzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ricm](/forum/user/13668-ricm "View ricm's Profile")**
- [![ricm's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13668-ricm "View ricm's Profile") Topic Author
- [ Offline](/forum/user/13668-ricm)

Less More

- Posts: 36
- Thank you received: 0
-
-

13 years 7 months ago [\#97146](#97146) by [ricm](/forum/user/13668-ricm "View ricm's Profile")  Replied by *[ricm](/forum/user/13668-ricm "View ricm's Profile")* on topic *[New Customer receives Admin Emails](/forum/3-bug-report/79888-new-customer-receives-admin-emails#97146 "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:  &quot;Account Details for  at https:///  &quot;Hello administrator, A new user '', username '', has registered at https:///.  This email is in addition to the email the user should receive:  &quot;Hi , Thank you for registering at https:///. Your account must be activated by clicking on the link below and............ etc&quot;  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 &quot;To&quot; field has their email and the admin's email address.  Thanks, Ric  PS: The only other significant change is the move to SSL???")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83OTg4OC1uZXctY3VzdG9tZXItcmVjZWl2ZXMtYWRtaW4tZW1haWxzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.044 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
