If you're going to do it there, why not just change:
'to' => $user_data['email'],
to
'to' => $user_data['email'],
'bcc'=>$from,
In other words, why send the same email twice? I know that cs-cart does this as standard practice, but a separate receipt (for like an order) isn't really a legal document when you can't show that the 'to' field was to the user. This way you get a blind copy of what was actually sent to the customer with them in the 'to' field, not you.
Hmm... memory is fading a bit... I think if I remember correctly that I actually needed to use the 'send_mail_pre' hook and then use the $mailer->addrAppend('Bcc', 'bcc-email@address');
But it should be added to the Mailer class because it's such a simple solution and the right way to "copy" receipts, invoices and other semi-legal documents.
Hmm... memory is fading a bit... I think if I remember correctly that I actually needed to use the 'send_mail_pre' hook and then use the $mailer->addrAppend('Bcc', 'bcc-email@address');
But it should be added to the Mailer class because it's such a simple solution and the right way to "copy" receipts, invoices and other semi-legal documents.
Thank you for the information. We will also check it