How do I add a CC/BCC to a WordPress using Contact Form 7 using the Contact Form 7 hook?
add_action( 'wpcf7_before_send_mail', 'dynamic_addcc' );
How do I add a CC/BCC to a WordPress using Contact Form 7 using the Contact Form 7 hook?
add_action( 'wpcf7_before_send_mail', 'dynamic_addcc' );
2
Answers
This is how, I commented where possible.
If you login to your WordPress admin and click on the Contact icon on the far left, under the dashboard.
Once you’ve done that if you click on the Contact Form button, and then click on the Mail tab.
Under the mail tab you will see an "Additional headers" box. In the additional headers box, you can enter the CC and BCC e-mail addresses.
Details on this:
https://michael-shore.uk/blog/add-cc-and-bcc-to-a-contact-form-7-form/
Or you could try:
Hope you find this useful.