You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

IncidentResponse do not send email but added to thread

Received Response
26
Views
4
Comments
edited Feb 18, 2020 3:29PM in Integrations and APIs 4 comments

Summary

IncidentResponse do not send email but added to thread

Content

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
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!