0
是否有可能分配$msgArray
作爲在捲曲
foreach($attachmentsArray as $att)
{
$msgArray["attachment[$x]"] = curl_file_create($att);
$x ++;
}
curl_setopt($ch, CURLOPT_POSTFIELDS, array(
'from' => 'Open <[email protected]>',
'to' => $email,
'subject' => $subject,
'html' => $msg
));
[有用的信息(http://stackoverflow.com/questions/5224790/curl-post-format-for-curlopt-postfields) – Martin