我正在使用此代碼發送帶有上傳文件的表單。然而,它與主郵件正常工作,但不發送cc郵件。cc在php郵件不起作用
$headers = "From: $email";
$headers .= 'Cc: [email protected]' . "\r\n";
// create a boundary string. It must be unique
$semi_rand = md5(time());
$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
// Add the headers for a file attachment
$headers .= "\nMIME-Version: 1.0\n" .
"Content-Type: multipart/mixed;\n" .
" boundary=\"{$mime_boundary}\"";
請幫助我使它運行。謝謝
謝謝你的解決方案 – techansaari
upvote如果你有解決方案.. –
upvote被鎖定,如果你編輯解決方案,我會做到這一點。 – techansaari