当我尝试使用 php 邮件功能插入 cc 时,我只收到带有 HTML 部分的消息。
我正在使用以下代码
$headers = "From:someone@gmail.com\r\n";
$headers .= "CC:test@gmail.com\r\n";
$headers .= "Content-type: text/html\r\n";
$to ="$x_email";
$subject ="Your Order Confirmation";
$bodyadmin=$messageadmin;
$sentmail=mail($to, $subject, $bodyadmin, $headers);
有人可以帮我解决这个问题吗?