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

#   \[SOLVED\] Conditional admin notification recipients

##

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile") Topic Author
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

11 years 9 months ago -  10 years 7 months ago [\#188463](#188463) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  *[\[SOLVED\] Conditional admin notification recipients](/forum/35-orders-management/874576-solved-conditional-admin-notification-recipients#188463 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : None.  Is it currently possible to have a conditional &quot;to address&quot; for the Order creation admin notifications emails? I thought this may be possible if the email addresses were values in a custom field, and then I could place the custom field 'tag' or 'placeholder' in the Configuration for &quot;Order creation admin notifications email address&quot;?  This is the scenario: Products are purchased online and picked up in a local store of the customer's choice. There are 5 local stores and each has an assigned email address. The local store that is selected by the customer during checkout needs to receive an email notification of the order.")* was created by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4
-- Error-message(debug-mod must be tuned on) -- : None.

Is it currently possible to have a conditional "to address" for the Order creation admin notifications emails? I thought this may be possible if the email addresses were values in a custom field, and then I could place the custom field 'tag' or 'placeholder' in the Configuration for "Order creation admin notifications email address"?

This is the scenario:
Products are purchased online and picked up in a local store of the customer's choice. There are 5 local stores and each has an assigned email address. The local store that is selected by the customer during checkout needs to receive an email notification of the order.

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

Last edit: 10 years 7 months ago by [3by400](/forum/user/6842-3by400 "View 3by400's Profile").

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 9 months ago [\#188499](#188499) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Conditional admin notification recipients](/forum/35-orders-management/874576-solved-conditional-admin-notification-recipients#188499 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : None.  Is it currently possible to have a conditional &quot;to address&quot; for the Order creation admin notifications emails? I thought this may be possible if the email addresses were values in a custom field, and then I could place the custom field 'tag' or 'placeholder' in the Configuration for &quot;Order creation admin notifications email address&quot;?  This is the scenario: Products are purchased online and picked up in a local store of the customer's choice. There are 5 local stores and each has an assigned email address. The local store that is selected by the customer during checkout needs to receive an email notification of the order.")*

Hi,

You can try with that code at the end of the preload of your emails that you can edit via the menu System&gt;Emails : Code:

// Do some checks on the shipping address which should be the store address if($data-&gt;cart-&gt;shipping_address == 'address 1'){ $this-&gt;mailer-&gt;addBCC('store1@address.com'); }elseif($data-&gt;cart-&gt;shipping_address == 'address 2'){ $this-&gt;mailer-&gt;addBCC('store2@address.com'); } // etc.

The following user(s) said Thank You: [3by400](/forum/user/6842-3by400 "View 3by400's Profile")

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

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile") Topic Author
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

11 years 9 months ago [\#189456](#189456) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  Replied by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")* on topic *[Conditional admin notification recipients](/forum/35-orders-management/874576-solved-conditional-admin-notification-recipients#189456 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : None.  Is it currently possible to have a conditional &quot;to address&quot; for the Order creation admin notifications emails? I thought this may be possible if the email addresses were values in a custom field, and then I could place the custom field 'tag' or 'placeholder' in the Configuration for &quot;Order creation admin notifications email address&quot;?  This is the scenario: Products are purchased online and picked up in a local store of the customer's choice. There are 5 local stores and each has an assigned email address. The local store that is selected by the customer during checkout needs to receive an email notification of the order.")*

Thanks, Xavier!

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

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

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile") Topic Author
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

10 years 7 months ago -  10 years 7 months ago [\#235375](#235375) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  Replied by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")* on topic *[Conditional admin notification recipients](/forum/35-orders-management/874576-solved-conditional-admin-notification-recipients#235375 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : None.  Is it currently possible to have a conditional &quot;to address&quot; for the Order creation admin notifications emails? I thought this may be possible if the email addresses were values in a custom field, and then I could place the custom field 'tag' or 'placeholder' in the Configuration for &quot;Order creation admin notifications email address&quot;?  This is the scenario: Products are purchased online and picked up in a local store of the customer's choice. There are 5 local stores and each has an assigned email address. The local store that is selected by the customer during checkout needs to receive an email notification of the order.")*

Hi Xavier -

We've tried to implement this, but the bcc emails are not being generated. We have a custom field single selection drop down with the name 'store'. The values of the drop down options are 1 through 5 and the titles are the name of the stores (eg. Highland Park).

Then we've added this code to the very bottom of the "Preload Version" in the Order Status Notification email: Code:

if($data-&gt;cart-&gt;store == '1'){ $this-&gt;mailer-&gt;addBCC('email@email.com,email2@email.com'); }elseif($data-&gt;cart-&gt;store == '2'){ $this-&gt;mailer-&gt;addBCC('email3@email.com,email4@email.com'); }

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

Last edit: 10 years 7 months ago by [3by400](/forum/user/6842-3by400 "View 3by400's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50Lzg3NDU3Ni1zb2x2ZWQtY29uZGl0aW9uYWwtYWRtaW4tbm90aWZpY2F0aW9uLXJlY2lwaWVudHM/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14296
-
-

10 years 7 months ago [\#235398](#235398) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Conditional admin notification recipients](/forum/35-orders-management/874576-solved-conditional-admin-notification-recipients#235398 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : None.  Is it currently possible to have a conditional &quot;to address&quot; for the Order creation admin notifications emails? I thought this may be possible if the email addresses were values in a custom field, and then I could place the custom field 'tag' or 'placeholder' in the Configuration for &quot;Order creation admin notifications email address&quot;?  This is the scenario: Products are purchased online and picked up in a local store of the customer's choice. There are 5 local stores and each has an assigned email address. The local store that is selected by the customer during checkout needs to receive an email notification of the order.")*

Hi,

This would only work if the custom field is of the table "order" and has its column name set to "store".
Could you provide a screenshot of the settings of your custom field ?

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

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile") Topic Author
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

10 years 7 months ago [\#235468](#235468) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  Replied by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")* on topic *[Conditional admin notification recipients](/forum/35-orders-management/874576-solved-conditional-admin-notification-recipients#235468 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : None.  Is it currently possible to have a conditional &quot;to address&quot; for the Order creation admin notifications emails? I thought this may be possible if the email addresses were values in a custom field, and then I could place the custom field 'tag' or 'placeholder' in the Configuration for &quot;Order creation admin notifications email address&quot;?  This is the scenario: Products are purchased online and picked up in a local store of the customer's choice. There are 5 local stores and each has an assigned email address. The local store that is selected by the customer during checkout needs to receive an email notification of the order.")*

Here you go ..

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

- [ ![Field-store.png](/forum/attachment/30465) ](/forum/attachment/30465 "Field-store.png") [ ](/forum/attachment/30465?download=1 "Field-store.png")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 7 months ago [\#235796](#235796) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Conditional admin notification recipients](/forum/35-orders-management/874576-solved-conditional-admin-notification-recipients#235796 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : None.  Is it currently possible to have a conditional &quot;to address&quot; for the Order creation admin notifications emails? I thought this may be possible if the email addresses were values in a custom field, and then I could place the custom field 'tag' or 'placeholder' in the Configuration for &quot;Order creation admin notifications email address&quot;?  This is the scenario: Products are purchased online and picked up in a local store of the customer's choice. There are 5 local stores and each has an assigned email address. The local store that is selected by the customer during checkout needs to receive an email notification of the order.")*

Hi,

That should be working, what if you add that code at the end of hte preload part: Code:

var_dump($data-&gt;cart-&gt;store);

Then in order management in backend, try to change an order status from the listing and in the popup enable the "notify customer" option, that will display the content of the email and you will see the value of $data-&gt;cart-&gt;store.

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

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile") Topic Author
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

10 years 7 months ago [\#236020](#236020) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  Replied by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")* on topic *[Conditional admin notification recipients](/forum/35-orders-management/874576-solved-conditional-admin-notification-recipients#236020 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : None.  Is it currently possible to have a conditional &quot;to address&quot; for the Order creation admin notifications emails? I thought this may be possible if the email addresses were values in a custom field, and then I could place the custom field 'tag' or 'placeholder' in the Configuration for &quot;Order creation admin notifications email address&quot;?  This is the scenario: Products are purchased online and picked up in a local store of the customer's choice. There are 5 local stores and each has an assigned email address. The local store that is selected by the customer during checkout needs to receive an email notification of the order.")*

Xavier -

This was the output - string(1) "1"

Initially, I received an error on the backend status change popup saying the email was invalid. It apparently would not accept the comma separated emails. Is there a way around that? I need to specify two email addresses, as in my example in the previous post.

I removed the second email, and then received the 'string(1) "1"' output on the backend order status change email, however, on the frontend when I try to submit an order I'm redirected to an error page that says "0 invalid address customer_name".

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50Lzg3NDU3Ni1zb2x2ZWQtY29uZGl0aW9uYWwtYWRtaW4tbm90aWZpY2F0aW9uLXJlY2lwaWVudHM/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14296
-
-

10 years 7 months ago [\#236066](#236066) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Conditional admin notification recipients](/forum/35-orders-management/874576-solved-conditional-admin-notification-recipients#236066 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : None.  Is it currently possible to have a conditional &quot;to address&quot; for the Order creation admin notifications emails? I thought this may be possible if the email addresses were values in a custom field, and then I could place the custom field 'tag' or 'placeholder' in the Configuration for &quot;Order creation admin notifications email address&quot;?  This is the scenario: Products are purchased online and picked up in a local store of the customer's choice. There are 5 local stores and each has an assigned email address. The local store that is selected by the customer during checkout needs to receive an email notification of the order.")*

The error "0 invalid address" comes from Joomla 3.5.1.
You would need to update your HikaShop to fix it:
[ www.hikashop.com/forum/checkout/883603-4...-process.html#235445](https://www.hikashop.com/forum/checkout/883603-404-error-on-step-3-of-checkout-process.html#235445)

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

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile") Topic Author
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

10 years 7 months ago [\#236069](#236069) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  Replied by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")* on topic *[Conditional admin notification recipients](/forum/35-orders-management/874576-solved-conditional-admin-notification-recipients#236069 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : None.  Is it currently possible to have a conditional &quot;to address&quot; for the Order creation admin notifications emails? I thought this may be possible if the email addresses were values in a custom field, and then I could place the custom field 'tag' or 'placeholder' in the Configuration for &quot;Order creation admin notifications email address&quot;?  This is the scenario: Products are purchased online and picked up in a local store of the customer's choice. There are 5 local stores and each has an assigned email address. The local store that is selected by the customer during checkout needs to receive an email notification of the order.")*

Ok, Hikashop is upgraded so the "0 invalid address" issue is resolved. Thanks!

However, we are still not getting the bcc email. I've even added a 'catch all' else at the end in the event the value isn't matching any of the elseif's and we're still not getting the email.

Will the code being in the Preload version execute on the frontend when an order is confirmed automatically by the payment method? We have tested using the frotend as well as changing the order status from the backend. Neither result in a bcc email.

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

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

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile") Topic Author
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

10 years 7 months ago [\#236115](#236115) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  Replied by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")* on topic *[Conditional admin notification recipients](/forum/35-orders-management/874576-solved-conditional-admin-notification-recipients#236115 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : None.  Is it currently possible to have a conditional &quot;to address&quot; for the Order creation admin notifications emails? I thought this may be possible if the email addresses were values in a custom field, and then I could place the custom field 'tag' or 'placeholder' in the Configuration for &quot;Order creation admin notifications email address&quot;?  This is the scenario: Products are purchased online and picked up in a local store of the customer's choice. There are 5 local stores and each has an assigned email address. The local store that is selected by the customer during checkout needs to receive an email notification of the order.")*

**I found this** - [ www.hikashop.com/forum/4-how-to/872622-a...on-email.html#179068](http://www.hikashop.com/forum/4-how-to/872622-add-custom-bcc-on-admin-confirmation-email.html#179068)

**So I tried this:**Code:

if($data-&gt;cart-&gt;store == '1') { $mail-&gt;bcc_email = array('email@email.com','email2@email.com'); } elseif($data-&gt;cart-&gt;store == '2') { $mail-&gt;bcc_email = array('email3@email.com','email4@email.com');

**This worked.**

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

The following user(s) said Thank You: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50Lzg3NDU3Ni1zb2x2ZWQtY29uZGl0aW9uYWwtYWRtaW4tbm90aWZpY2F0aW9uLXJlY2lwaWVudHM/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14296
-
-

10 years 7 months ago [\#236081](#236081) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Conditional admin notification recipients](/forum/35-orders-management/874576-solved-conditional-admin-notification-recipients#236081 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : None.  Is it currently possible to have a conditional &quot;to address&quot; for the Order creation admin notifications emails? I thought this may be possible if the email addresses were values in a custom field, and then I could place the custom field 'tag' or 'placeholder' in the Configuration for &quot;Order creation admin notifications email address&quot;?  This is the scenario: Products are purchased online and picked up in a local store of the customer's choice. There are 5 local stores and each has an assigned email address. The local store that is selected by the customer during checkout needs to receive an email notification of the order.")*

Hi,

From what I understand BCC and CC won't work on windows with the "mail" sending method of Joomla:
[ phpmailer.worxware.com/?pg=methods](http://phpmailer.worxware.com/?pg=methods)
So would it come from that ?

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

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile") Topic Author
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

10 years 7 months ago -  10 years 6 months ago [\#236196](#236196) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  Replied by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")* on topic *[Conditional admin notification recipients](/forum/35-orders-management/874576-solved-conditional-admin-notification-recipients#236196 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : None.  Is it currently possible to have a conditional &quot;to address&quot; for the Order creation admin notifications emails? I thought this may be possible if the email addresses were values in a custom field, and then I could place the custom field 'tag' or 'placeholder' in the Configuration for &quot;Order creation admin notifications email address&quot;?  This is the scenario: Products are purchased online and picked up in a local store of the customer's choice. There are 5 local stores and each has an assigned email address. The local store that is selected by the customer during checkout needs to receive an email notification of the order.")*

We use a Linux server, however, our email is routed through Mandrill so using $this-&gt;$mailer-&gt;Bcc wouldn't work.

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

Last edit: 10 years 6 months ago by [3by400](/forum/user/6842-3by400 "View 3by400's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50Lzg3NDU3Ni1zb2x2ZWQtY29uZGl0aW9uYWwtYWRtaW4tbm90aWZpY2F0aW9uLXJlY2lwaWVudHM/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14296
-
-

10 years 6 months ago [\#236203](#236203) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Conditional admin notification recipients](/forum/35-orders-management/874576-solved-conditional-admin-notification-recipients#236203 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : None.  Is it currently possible to have a conditional &quot;to address&quot; for the Order creation admin notifications emails? I thought this may be possible if the email addresses were values in a custom field, and then I could place the custom field 'tag' or 'placeholder' in the Configuration for &quot;Order creation admin notifications email address&quot;?  This is the scenario: Products are purchased online and picked up in a local store of the customer's choice. There are 5 local stores and each has an assigned email address. The local store that is selected by the customer during checkout needs to receive an email notification of the order.")*

Mmm. Why using $this-&gt;mailer-&gt;Bcc wouldn't work because of Mandrill ?

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

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile") Topic Author
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

10 years 6 months ago [\#236395](#236395) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  Replied by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")* on topic *[Conditional admin notification recipients](/forum/35-orders-management/874576-solved-conditional-admin-notification-recipients#236395 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : None.  Is it currently possible to have a conditional &quot;to address&quot; for the Order creation admin notifications emails? I thought this may be possible if the email addresses were values in a custom field, and then I could place the custom field 'tag' or 'placeholder' in the Configuration for &quot;Order creation admin notifications email address&quot;?  This is the scenario: Products are purchased online and picked up in a local store of the customer's choice. There are 5 local stores and each has an assigned email address. The local store that is selected by the customer during checkout needs to receive an email notification of the order.")*

Doesn't $this-&gt;mailer-&gt;Bcc utilize PHPMailer? We have PHPMailer disabled on our server, and route all Joomla site traffic through SMTP (Mandrill).

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50Lzg3NDU3Ni1zb2x2ZWQtY29uZGl0aW9uYWwtYWRtaW4tbm90aWZpY2F0aW9uLXJlY2lwaWVudHM/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14296
-
-

10 years 6 months ago [\#236397](#236397) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Conditional admin notification recipients](/forum/35-orders-management/874576-solved-conditional-admin-notification-recipients#236397 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : None.  Is it currently possible to have a conditional &quot;to address&quot; for the Order creation admin notifications emails? I thought this may be possible if the email addresses were values in a custom field, and then I could place the custom field 'tag' or 'placeholder' in the Configuration for &quot;Order creation admin notifications email address&quot;?  This is the scenario: Products are purchased online and picked up in a local store of the customer's choice. There are 5 local stores and each has an assigned email address. The local store that is selected by the customer during checkout needs to receive an email notification of the order.")*

$this-&gt;mailer-&gt;Bcc indeed uses PHPMailer as does $mail-&gt;bcc_email.
You can't disable PHPMailer. It's a library included by Joomla and it's used for sending all the emails sent by Joomla. There is no option to disable it in Joomla.
Joomla will then use PHPMailer to either use the "mail" system of your server, or connect to a SMTP server.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50Lzg3NDU3Ni1zb2x2ZWQtY29uZGl0aW9uYWwtYWRtaW4tbm90aWZpY2F0aW9uLXJlY2lwaWVudHM/dG1wbD1tYXJrZG93bg==) 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.115 seconds

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