Hi,
Well, I thought this over and decided to go for the solution Xavier provided after all. However, this does not seem to work.
What I did to test it was the following:
1. I added two custom fields, one addres field and one user field.
2. For a customer I filled these fields with an emailadres.
3. I added the code Xavier gave to the preload screen of the creation notification email.
4. Tested it, but no bcc mail was send (regular emails were send).
I added this code to the preload version:
if(!empty($data->cart->emailusercustom)){
$this->mail->addBCC($data->cart->emailusercustom);
}
if(!empty($data->cart->emailaddresscustom)){
$this->mail->addBCC($data->cart->emailaddresscustom);
}
// Just to test:
$this->mailer->addBCC('example@test.com');
I added the last line to see if this was beeing send, but this didn't happen. FYI: if I enter a global bcc email address in the settings of the email, this is beeing send. So it's not that the server doesn't allow it.
How can I get this to work?
Thanks!