IncidentResponse do not send email but added to thread
Summary
IncidentResponse do not send email but added to threadContent
I try to use incidentresponse object to add response and send an email, however, it only adds the thread but not sending any email out. Any guidance is much appreciated.
Code Snippet
public static function addCommunication(&$request, $message) { $response = new RNCPHP\IncidentResponse(); $response->Incident = $request; if(!$response->Incident->Threads){ $response->Incident->Threads= new RNCPHP\ThreadArray(); } $thread_count = count($response->Incident->Threads); $response->Incident->Threads[$thread_count]= new RNCPHP\Thread(); $response->Incident->Threads[$thread_count]->Text=$message; $response->Incident->Threads[$thread_count]->EntryType
0