是否可以将$msgArray
指定为curl中使用的数组的最后一个元素
foreach( $attachmentsArray as $att )
{
$msgArray["attachment[$x]"] = curl_file_create( $att );
$x ++;
}
curl_setopt($ch, CURLOPT_POSTFIELDS, array(
'from' => 'Open <test@gmail.com>',
'to' => $email,
'subject' => $subject,
'html' => $msg
));
答案 0 :(得分:2)
是。就像一个泵,这对你有用吗?
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
reference(推荐)