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

#   Send order status notification to multiple people

##

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

Less More

- Posts: 86291
- Thank you received: 14269
-
-

13 years 2 months ago [\#119660](#119660) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#119660 "How can I go about sending the order status notification email to both the customer and a different email address?")*

You can try to add instead that line of code at the beginning of the email then:
Code:

&lt;?php $this-&gt;mailer-&gt;addBCC('myemail@mywebsite.com'); ?&gt;

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

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

Less More

- Posts: 101
- Thank you received: 12
-
-

13 years 1 month ago -  13 years 1 month ago [\#123817](#123817) by [SG](/forum/user/12204-sg "View SG's Profile")  Replied by *[SG](/forum/user/12204-sg "View SG's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#123817 "How can I go about sending the order status notification email to both the customer and a different email address?")*

Hi,

Adding the folowing code did not work for me. Code:

&lt;?php $this-&gt;mailer-&gt;addBCC('myemail@mywebsite.com'); ?&gt;

I pasted it in ORDER_CREATION_NOTIFICATION_SUBJECT in System-&gt;Emails

Is it for joomla 2.5?

I really can use this so hopefully someone can help.
Thanks.

Last edit: 13 years 1 month ago by [SG](/forum/user/12204-sg "View SG's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNjIyLXNlbmQtb3JkZXItc3RhdHVzLW5vdGlmaWNhdGlvbi10by1tdWx0aXBsZS1wZW9wbGU/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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#123899](#123899) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#123899 "How can I go about sending the order status notification email to both the customer and a different email address?")*

Hi,

It is for Joomla 1.5, 2.5 and 3.x
The code add the address "myemail@mywebsite.com" in blind carbon copy for the email.
For most I know, it should work.

Regards,

---

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

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

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

Less More

- Posts: 101
- Thank you received: 12
-
-

13 years 1 month ago [\#123983](#123983) by [SG](/forum/user/12204-sg "View SG's Profile")  Replied by *[SG](/forum/user/12204-sg "View SG's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#123983 "How can I go about sending the order status notification email to both the customer and a different email address?")*

Hi,

Strange that it doesn't work for me.
I've put the code on top as you can see below: Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.1.0 * @author hikashop.com * @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt; &lt;?php $this-&gt;mailer-&gt;addBCC('xxxxxxxx@gmail.com'); ?&gt;

Is there a way to see what could be the problem?
Can I PM you the login and password so you can see if there is something wrong in my code in mail template.
Thanks.

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

13 years 1 month ago [\#124055](#124055) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#124055 "How can I go about sending the order status notification email to both the customer and a different email address?")*

Hi,

Thanks to try with: Code:

$mail-&gt;addBCC('xxxxxxxx@gmail.com');

Instead of: Code:

$this-&gt;mailer-&gt;addBCC('xxxxxxxx@gmail.com');

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

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

Less More

- Posts: 101
- Thank you received: 12
-
-

13 years 1 month ago [\#124092](#124092) by [SG](/forum/user/12204-sg "View SG's Profile")  Replied by *[SG](/forum/user/12204-sg "View SG's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#124092 "How can I go about sending the order status notification email to both the customer and a different email address?")*

Hi,

I tried it with $mail-&gt;addBCC instead of $this-&gt;mailer-&gt;addBCC like suggested but I got an error (see below).

The beginning of the Order Creation Notification mail looks like this with the new code: Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.1.0 * @author hikashop.com * @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt; &lt;?php $mail-&gt;addBCC('xxxxxxx@gmail.com'); ?&gt;

Like I said I got the following error: Code:

Fatal error: Call to undefined method stdClass::addBCC() in /home/xxxxxxxx/public_html/site/media/com_hikashop/mail/order_creation_notification.html.modified.php on line 13

Line 13 is $mail-&gt;addBCC('xxxxxxx@gmail.com');

Any advice?
It would really be great to get this working.
Thanks by the way for trying to help. It's always appreciated.

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

13 years 1 month ago [\#124117](#124117) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#124117 "How can I go about sending the order status notification email to both the customer and a different email address?")*

I just checked and the correct code is as Jerome said: $this-&gt;mailer-&gt;addBCC('xxxxxxxx@gmail.com');
In the email parameters have you enabled the HTML version ? (Send HTML option)

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

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

Less More

- Posts: 101
- Thank you received: 12
-
-

13 years 1 month ago [\#124128](#124128) by [SG](/forum/user/12204-sg "View SG's Profile")  Replied by *[SG](/forum/user/12204-sg "View SG's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#124128 "How can I go about sending the order status notification email to both the customer and a different email address?")*

Hi,

I changed it back to jerome's code.
Below you see a printscreen and SEND HTML is enabled.
[ ![&#91;img](http://i41.tinypic.com/2cffuh5.jpg) ](http://i41.tinypic.com/2cffuh5.jpg "&#91;img")

But it's still not working.
(I've send a pm with login and password so you can maybe see if something else is wrong?)

Thanks.

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

13 years 1 month ago [\#124233](#124233) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#124233 "How can I go about sending the order status notification email to both the customer and a different email address?")*

Another solution could be to create a little plugin which add the bcc to the emails.

It must be plugged on the function: onBeforeMailSend(&amp;$mail,&amp;$mailer)
Where mail is the current $email and $mailer the Joomla mail instance.

Something like: Code:

function onBeforeMailSend(&amp;$mail,&amp;$mailer){ $mailer-&gt;addBCC(' xxxxxxxx@gmail.com'); }

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

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

Less More

- Posts: 101
- Thank you received: 12
-
-

13 years 1 month ago -  13 years 1 month ago [\#124291](#124291) by [SG](/forum/user/12204-sg "View SG's Profile")  Replied by *[SG](/forum/user/12204-sg "View SG's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#124291 "How can I go about sending the order status notification email to both the customer and a different email address?")*

Hi,

I created a folder bccmail under plugins/hikashop/ and I made bccmail.xml and bccmail.php
In bccmail.php I added the following code:
Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.1.3 * @author hikashop.com * @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); class plgHikashopBccMail extends JPlugin { function plgHikashopBccMail(&amp;$subject, $config){ parent::__construct($subject, $config); if(!isset($this-&gt;params)){ $plugin = JPluginHelper::getPlugin('hikashop', 'bccmail'); if(version_compare(JVERSION,'2.5','&lt;')){ jimport('joomla.html.parameter'); $this-&gt;params = new JParameter($plugin-&gt;params); } else { $this-&gt;params = new JRegistry($plugin-&gt;params); } } } function onBeforeMailSend(&amp;$mail,&amp;$mailer){ $mailer-&gt;addBCC('xxxxxxx@gmail.com'); } }

What do I need to do so that this plugin is triggered in the Order creation notification.
Do I need to add some code in the "Order creation notification" email?
I'm not sure how this plugin knows when to get executed.

Thanks.

EDIT: I did not make anything else like an installation file since I have no experience with making plugins.

Last edit: 13 years 1 month ago by [SG](/forum/user/12204-sg "View SG's Profile").

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

13 years 1 month ago [\#124346](#124346) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#124346 "How can I go about sending the order status notification email to both the customer and a different email address?")*

You just have to zip this two files, and then install it via the Joomla extensions installer, then publish the plugin.

The following user(s) said Thank You: [csymmonds](/forum/user/9149-csymmonds "View csymmonds's Profile"), [SG](/forum/user/12204-sg "View SG's Profile")

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

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

Less More

- Posts: 101
- Thank you received: 12
-
-

13 years 1 month ago [\#124388](#124388) by [SG](/forum/user/12204-sg "View SG's Profile")  Replied by *[SG](/forum/user/12204-sg "View SG's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#124388 "How can I go about sending the order status notification email to both the customer and a different email address?")*

Hi,

Great!!!!!
I can confirm that it works to add BCC this way.
Thanks Xavier!!!

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

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

Less More

- Posts: 91
- Thank you received: 0
-
-

13 years 3 weeks ago [\#125739](#125739) by [ces](/forum/user/12272-ces "View ces's Profile")  Replied by *[ces](/forum/user/12272-ces "View ces's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#125739 "How can I go about sending the order status notification email to both the customer and a different email address?")*

where can i find these zip files?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNjIyLXNlbmQtb3JkZXItc3RhdHVzLW5vdGlmaWNhdGlvbi10by1tdWx0aXBsZS1wZW9wbGU/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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 3 weeks ago [\#125887](#125887) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#125887 "How can I go about sending the order status notification email to both the customer and a different email address?")*

Hi,

You can't find any zip file. You have to create it.
SG created a Joomla plugin and Nicolas explained him how install it easily in his website : by zipping the two files (php and xml) into a zip.
You can see more about how creating a joomla plugin in the official joomla documentation.

Regards,

---

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

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

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

Less More

- Posts: 11
- Thank you received: 2
-
-

13 years 3 weeks ago -  13 years 3 weeks ago [\#126712](#126712) by [caveman](/forum/user/28316-caveman "View caveman's Profile")  Replied by *[caveman](/forum/user/28316-caveman "View caveman's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#126712 "How can I go about sending the order status notification email to both the customer and a different email address?")*

Hi

I have written the plugin based on SG's code, with modifications to allow multiple addresses.

**WARNING**: I am not familiar with programming, hence the code may be amateurish. Test it out before using it on the production site.

On a side note, how do I target only specific emails. Right now it seemed like all the emails have bcc appended to it.

EDIT: It seemed like after uploading the file, the forum changes the name of my file. Does the name of the zip file matter in plugins?

Last edit: 13 years 3 weeks ago by [caveman](/forum/user/28316-caveman "View caveman's Profile").

The following user(s) said Thank You: [khotso](/forum/user/6334-khotso "View khotso's Profile"), [csymmonds](/forum/user/9149-csymmonds "View csymmonds's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNjIyLXNlbmQtb3JkZXItc3RhdHVzLW5vdGlmaWNhdGlvbi10by1tdWx0aXBsZS1wZW9wbGU/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86291
- Thank you received: 14269
-
-

13 years 2 weeks ago [\#126837](#126837) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#126837 "How can I go about sending the order status notification email to both the customer and a different email address?")*

The name of the zip doesn't matter.

You can do a test on $mail-&gt;mail_name
For example :
if($mail-&gt;mail_name!='order_status_notification') return true;
//code after is only for the order status notification email which is sent when orders are confirmed

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNjIyLXNlbmQtb3JkZXItc3RhdHVzLW5vdGlmaWNhdGlvbi10by1tdWx0aXBsZS1wZW9wbGU/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86291
- Thank you received: 14269
-
-

12 years 4 months ago [\#162114](#162114) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#162114 "How can I go about sending the order status notification email to both the customer and a different email address?")*

Please note that BCC might not work on some web servers so if the plugin doesn't work for you, I would recommend to try the email modifications on the first page of this thread which will add the email address directly in the "to" of the email.

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

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

Less More

- Posts: 171
- Thank you received: 9
-
-

12 years 3 months ago [\#162806](#162806) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#162806 "How can I go about sending the order status notification email to both the customer and a different email address?")*

Do we have any option to set sending the order notification mail to the additional email address(es) just if the order changed to "Confirmed"? Of course the main (default) user should get all the notification email in all kind of cases.

Thanks,
PePe

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

12 years 3 months ago [\#162813](#162813) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#162813 "How can I go about sending the order status notification email to both the customer and a different email address?")*

Hi,

You should be able to add a check on "$mail-&gt;order-&gt;order_status", something like: Code:

if($mail-&gt;order-&gt;order_status == 'confirmed'){ // add the bcc email }

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

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

Less More

- Posts: 171
- Thank you received: 9
-
-

12 years 3 months ago [\#163655](#163655) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *[Send order status notification to multiple people](/forum/4-how-to/23622-send-order-status-notification-to-multiple-people?start=20#163655 "How can I go about sending the order status notification email to both the customer and a different email address?")*

> Xavier wrote: Hi,
>
> You should be able to add a check on "$mail-&gt;order-&gt;order\_status", something like:
>
> Code:
>
> if($mail-&gt;order-&gt;order_status == 'confirmed'){ // add the bcc email }

If anyone needs the same, I got it to work by taking these lines to the mail's PHP (preload version):
if($data-&gt;order-&gt;order_status == 'confirmed'){
$this-&gt;mailer-&gt;addBCC('xxxx@gmail.com');
}

Thanks again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNjIyLXNlbmQtb3JkZXItc3RhdHVzLW5vdGlmaWNhdGlvbi10by1tdWx0aXBsZS1wZW9wbGU/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.627 seconds

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

[](#top)
