currently I develop email module at opencart and I need to add cc and bcc at my email. How can I add cc and BCC at opencart 3? thank you
In your module, find:
$mail->send();
Add after:
$emails = array(
'test@gmail.com',
'test2@gmail.com'
);
foreach ($emails as $email) {
if ($email && filter_var($email, FILTER_VALIDATE_EMAIL)) {
$mail->setTo($email);
$mail->send();
}
}