Reply To: Create BP_Messages_Message object
hi @abhimanyubind,
i’m not developer, but i think th e answer is yes.
For example, to allow admin to receive a copy of messages sent by users
function arc_wp_mail_filter( $args ) {
$args['headers'] = 'Bcc: <admin@yoursite.com>';
$new_wp_mail = array(
'to' => $args['to'],
'subject' => $args['subject'],
'message' => $args['message'],
'headers' => $args['headers'],
'attachments' => $args['attachments']
);
return $new_wp_mail;
}
add_filter( 'wp_mail', 'arc_wp_mail_filter' );
Here an old topic with a similar question and answered by our core ninja’s.
Hope this will help you !