我尝试将SendGrid作为我的PHP邮件平台,但问题是我不能将多个电子邮件发送到抄送(CC)头部,也不能编辑“发件人”标题以在电子邮件地址前显示名称。
$from = "News Letter <new@gmail.com>" // cannot get the "News Letter" to Display
$cc = array("aaaaaa@gmail.com","bbbbb@gmail.com");// doesnt send to arrays
$params = array(
'api_user' => $user,
'api_key' => $pass,
'to' => $to,
'cc' => $cc,
'subject' => $subject,
'html' => $body,
'from' => $headers
);