0
にカール
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