Setting up Bcc on ad lister contact
Hello, I've been following previous threads but there doesn't seem to be a solution for classipress 3.4.1
I would like to receive a copy of all contacts posted through the ad lister contact form (including email), so far, based on previous editions of classipress, i've tried the following, which doesnt work (alterations shown in bold text). If anyone can help it would be greatly appreciated. thanks in advanced
--
function cp_contact_ad_owner_email( $post_id ) {
$errors = new WP_Error();
$Bcc = get_option('admin_email');
$headers = "BCC: $Bcc \r\n";
and
APP_Mail_From::apply_once( array( 'email' => $email['from'], 'name' => $email['from_name'], 'reply' => true ) );
appthemes_send_email( $email['to'], $email['subject'], $email['message']
, $headers );
return $errors;
the following error is returned
Parse error: syntax error, unexpected '$headers' (T_VARIABLE) in /homepages/11/d447475637/htdocs/Rentals/wordpress/
wp-content/themes/classipress/includes/emails.php on line 262
Many thanks for your help