i want to use bcc or cc function in this mail function?

后端 未结 3 631
闹比i
闹比i 2020-12-12 03:18

i want to use bcc or cc function in this mail function?

Here My Mail Function

 

        
3条回答
  •  旧巷少年郎
    2020-12-12 03:38

    Just add the Bcc/CC in your Code

    ';
    $message = 'Welcome,
    '.$_POST['username'].'. You must activate your account via this message to log in. Click the following link to do so: http://'.$domain.'/'.$activation; $headers = 'From: Mydomain<'.$your_email.'@'.$domain.'>\r\n'; //MODIFY TO YOUR SETTINGS $headers .= "BCC: email@domain.com;\r\n" $headers .= 'Content-type: text/html\r\n'; mail($to, $subject, $message, $headers); ?>

提交回复
热议问题