Answers for "wp_mail cc"

PHP
0

wp_mail

$to = 'sendto@example.com';
$subject = 'The subject';
$body = 'The email body content';
$headers = array('Content-Type: text/html; charset=UTF-8');
 
wp_mail( $to, $subject, $body, $headers );
Posted by: Guest on April-15-2021
0

cc in wp_mail

$headers = array(
    'From: bbb@example.com', 
    'CC: ccc@example.com', 
    'CC: ddd@example.com', 
    'BCC: eee@example.pro', 
    'BCC: fff@example.pro' 
);
Posted by: Guest on September-14-2021

Browse Popular Code Answers by Language