Jump to content

Send customer eMails to me


Claudia M

Recommended Posts

Hi,

I use to have coding that would send customer emails to me also.  Now that we have the email log, the emails aren't sent to me.  I would still like the order complete email sent to me as I use this to check for delivery.  Saves time from having to log in to admin .....  I have the tracking link in the email. Can this still be done?

Thanks in advance,

Claudia

Link to comment
Share on other sites

So is this all I do? Reading the post I don't know if it ever worked correctly.

In admin, Manage Hooks, Code Snippets tab, click Add Snippet.

Nevermind!  Adding the Code Snippets worked.  Thank You!!

Enabled: Checked
Unique ID: classize_mailer@cubecart
Execution Order: 99
Description: Class-izes the Mailer instantiation so that it can be seen outside the orderStatus() method.
Trigger: class.order.order_status
Version: 1.0
Author: https://forums.cubecart.com/topic/52330-how-to-add-admin-as-bcc-of-all-customers-order-status-emails/
PHP Code:
<?php
$this->_mailer =& $mailer;

Save.

Start another Code Snippet.

Enabled: Checked
Unique ID: bcc_admin@cubecart
Execution Order: 99
Description: BCC's the admins on all customer emails.
Trigger: class.order.assign_order_details
Version: 1.0
Author: https://forums.cubecart.com/topic/52330-how-to-add-admin-as-bcc-of-all-customers-order-status-emails/
PHP Code:
<?php
//$this->_mailer->SMTPDebug = 2;
//$this->_mailer->Debugoutput = 'error_log';
$addBCC_notify_admins = explode(',', $this->_notifyAdmins());
foreach ($addBCC_notify_admins as $admin) {
$this->_mailer->addBCC($admin);
}

Save.

Edited by Claudia M
Code changed worked
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...