1

Is there a way to for Joomla to add a BCC to all emails it sends?

I am using the contacts component with over 160 contacts that are contactable via the contact form option. I want to be able to add a BCC to all emails sent via this option.

1

There is no direct way to do this from Joomla as there are no events triggered when a mail is sent (hopefully this will change in the future).

Now, if you're into core modifications, then you can do this through a core modification. Just open the file components/com_contact/controllers/contact.php and add the following line just below $mail->addRecipient($contact->email_to);

$mail->addBcc('youremail@yourdomain.com');
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.