Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Add Bccs To Order Notifications Rate Topic   - - - - -

 
  • Jmoffat
  • Member
  • Members
  • Join Date: 15-Oct 12
  • 40 posts

Posted 10 February 2020 - 09:38 AM #1

I'm trying to create a simple addon for adding BCCs to all notifications sent by the cart. 

 

I'm trying to hook this onto the mailer_send_pre hook using the following function. 

function fn_bcc_emails_mailer_send_pre(&$this, &$transport, &$message, &$area, &$lang_code){
    $this->addBCC('redacted@email.com');
}

So far nothing has came through when triggering the function. Does anyone have any suggestions on what I'd need to do to correct this?