I am using this code to send a form with uploaded file. However It is working fine with primary mail but do not send cc mail.
$headers = "From: $email";
$headers .= 'Cc: xyz@gmail.com' . "
";
// 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 .= "
MIME-Version: 1.0
" .
"Content-Type: multipart/mixed;
" .
" boundary=\"{$mime_boundary}\"";
please help me to make it run. thanks