$email = array( 'to' => $author_email, 'subject' => $subject, 'message' => $message, 'from' => $from_email, 'from_name' => $from_name );
$email = apply_filters( 'cp_email_user_ad_contact', $email, $post_id );
APP_Mail_From::apply_once( array( 'email' => $email['from'], 'name' => $email['from_name'], 'reply' => true ) );
$Bcc = "abc@gmail.com"; // added by Manish
appthemes_send_email( $email['to'], $email['subject'], $email['message'], $Bcc );
return $errors;
function appthemes_send_email( $address, $subject, $content, $Bcc )
$headers = array(
'from' => sprintf( 'From: %1$s <%2$s>', $blogname, "wordpress@$domain" ),
'mime' => 'MIME-Version: 1.0',
'type' => 'Content-Type: text/html; charset="' . get_bloginfo( 'charset' ) . '"',
'reply_to' => "Reply-To: noreply@$domain",
'bcc' => "BCC: $Bcc \r\n", // added by Manish
);
Fanatic (September 10th, 2020)
There are currently 1 users browsing this thread. (0 members and 1 guests)