Здравствуйте, я использую Osticket для системы тикетов, я создаю тикет с помощью API, и когда я вхожу в панель агента, обновляю статус тикета и выбираю отправку писем с ожидаемыми ответами, но когда я попытался обновить сататус с использованием API-адресов электронной почты, не идет , статусы меняются, ответы сохраняются, но сообщения электронной почты не отправляются, мой метод ответа на сообщение
$data = array(
'ticketNumber' =>34343,
'msgId' => 'true',
'a' => 'reply',
'emailreply' => '1',
'emailcollab' => 1,
'cannedResp' => 3,
'draft_id' => '',
'response' => 'Hi,The Testing has been Completed of your Reported Task Ticket From Live',
'signature' => 'none',
'reply_status_id' => 3,
'staffUserName' => 'fahim',
'ip_address' => 192.185.57.132,
'cannedattachments' => ''
);
function_exists('curl_version') or die('CURL support required');
function_exists('json_encode') or die('JSON support required');
set_time_limit(300);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $config['url']);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_USERAGENT, 'osTicket API Client v1.8');
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Expect:', 'X-API-Key: '.$config['key']));
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$result_ost=curl_exec($ch);
print_r($result_ost);
if(curl_errno($ch)){
echo 'Request Error:' . curl_error($ch);
}
Response from post reply is
{"status_code":"0","status_msg":"reply posted successfully"}
status updated success full response also showing but email is not going via API post reply