Sendcloud的x_smtpapi具体如何定义?
正在用搜狐的Sendcloud发邮件,用x_smtpapi定义收件人。文档严重不足……和客服试了几次都不行。代码:
$recipient = "'[email protected]', '[email protected]'";
$title = $this->input->post('title');
$body = $this->input->post('body');
$x_smtpapi = json_encode(array(
"to" => $recipient));
$data=
array(
'api_user'=>'[email protected]',
'api_key' =>'XXXX',
'from'=>'xxxx',
'fromname'=>'xxxxx',
'subject'=>$title,
'html'=>$body,
'x_smtpapi'=>$x_smtpapi
);
报错为:{"message":"error","errors":["Parameter x-smtpapi is not a valid json stringjava.lang.String cannot be cast to net.sf.json.JSONArray"]}
大牛们看看。谢了!
smtp sendcloud php mailgun email
木丁丁的凹凸曼
11 years ago