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

#   Add custom bcc on admin confirmation email

##

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

Less More

- Posts: 23
- Thank you received: 2
-
-

12 years 2 weeks ago [\#179454](#179454) by [sales@technoran.gr](/forum/user/34660-sales-technoran-gr "View sales@technoran.gr's Profile")  Replied by *[sales@technoran.gr](/forum/user/34660-sales-technoran-gr "View sales@technoran.gr's Profile")* on topic *[Add custom bcc on admin confirmation email](/forum/4-how-to/872622-add-custom-bcc-on-admin-confirmation-email?start=20#179454 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 2.5.27  Hello All. I have create a custom adress field caled emailsalesman. In this field i enter the salesman email of every customer we have. I want this field to be as BCC in every admin confirmation email the system send in order to take both the admin and the salesman this email. I use custom field for every customer because there are more than one salesmen.  Is this possible?")*

> Xavier wrote: Hi,
>
> You can use the following code:
>
> Code:
>
> $mail-&gt;bcc_email = array($data-&gt;cart-&gt;billing_address-&gt;emailsalesman);
>
>
>
>
> By default the admin notification email is sent only to the system administrator, but with your required modification, as we are adding the customer ass bcc in the email, so when replying it is automatically used in the bcc field.

Hi Xavier,

the field is not in the Hikashop_adress but in the Hikashop_user table and called emailsales not emailsalesman
so is correct to add the following line?
$mail-&gt;bcc_email = array($data-&gt;cart-&gt;billing_address-&gt;emailsales);

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 2 weeks ago [\#179484](#179484) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Add custom bcc on admin confirmation email](/forum/4-how-to/872622-add-custom-bcc-on-admin-confirmation-email?start=20#179484 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 2.5.27  Hello All. I have create a custom adress field caled emailsalesman. In this field i enter the salesman email of every customer we have. I want this field to be as BCC in every admin confirmation email the system send in order to take both the admin and the salesman this email. I use custom field for every customer because there are more than one salesmen.  Is this possible?")*

Hi,

If it is an address custom field, you can read the value in:
$data-&gt;cart-&gt;billing_address-&gt;my_custom_field
OR
$data-&gt;cart-&gt;shipping_address-&gt;my_custom_field

If it is an user custom field, you can read the value in:
$data-&gt;customer-&gt;my_custom_field

Just replace "my_custom_field" by the custom field key you're using.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [sales@technoran.gr](/forum/user/34660-sales-technoran-gr "View sales@technoran.gr's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg3MjYyMi1hZGQtY3VzdG9tLWJjYy1vbi1hZG1pbi1jb25maXJtYXRpb24tZW1haWw/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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)
