Skip to content

Instantly share code, notes, and snippets.

@hostz-frank
Last active October 29, 2021 13:05
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hostz-frank/600733ddcdbecb70cb1a47b1ef87bca6 to your computer and use it in GitHub Desktop.
Save hostz-frank/600733ddcdbecb70cb1a47b1ef87bca6 to your computer and use it in GitHub Desktop.
Send mail copy to users of Divi's contact form.
<?php
/**
* Send copy to Divi's contact form sender.
*/
add_filter( 'et_contact_page_headers', 'change_et_contact_page_headers', 10, 3 );
function change_et_contact_page_headers( $headers, $contact_name, $contact_email ) {
$headers[] = 'Cc: ' . $contact_email;
return implode( "\n", $headers );
}
@zensabbah
Copy link

zensabbah commented Mar 18, 2020

For me it doens't work :(

Works like a charm: it should be a standard feature of Divi Contact Form!
Thank you very much Frank.

For me not :(, I put exactly the same in the recipient field

@jvdhelder
Copy link

What is the differents with your other code: https://gist.github.com/hostz-frank/2391d6a8d5ffb6fb965a8446198b90a2 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment