如何在google mail api中提供多个抄送
$service = new Google_Service_Gmail($client);
$user = 'me';
$strSubject = "Faculty status on the track";
$strRawMessage = "From:<abcd@xyz.center>\r\n";
$strRawMessage .= "To:" . $studentemail_id . "\r\n";
$strRawMessage .= "Cc:" . $coauthordata . "\r\n";
$strRawMessage .= 'Subject: =?utf-8?B?' . base64_encode($strSubject) . "?=\r\n";
$strRawMessage .= "MIME-Version: 1.0\r\n";
$strRawMessage .= "Content-Type: text/html; charset=utf-8\r\n";
$strRawMessage .= 'Content-Transfer-Encoding: quoted-printable' . "\r\n\r\n";
$strRawMessage .= "Name";
//print_r($strRawMessage);
//The message needs to be encoded in Base64URL
$mime = rtrim(strtr(base64_encode($strRawMessage), '+/', '-_'), '=');
//print_r($mime);
$msg = new Google_Service_Gmail_Message();
$msg->setRaw($mime);
$result=$service->users_messages->send("me", $msg);
`
$coauthordata= 数组([0] => xyzw@gmail.com)