Jump to content
  • 0

[Sloved]Api Does Not Seem To Trigger Controller Send Mail?


Question

Posted

In "plugins/support_managerpro/controllers/client_tickets.php"

Line:181 and 334

$this->SupportManagerproTickets->sendEmail($reply_id);

to

//$this->SupportManagerproTickets->sendEmail($reply_id);

In "plugins/support_managerpro/models/support_managerpro_tickets.php"

 

On line 468

change:

// Return the ID of the reply

to

$this->sendEmail($reply_id);
// Return the ID of the reply

=================================================================================

 

 

 

I find use api create ticket or reply ticket seems to no email send.

 

 

because sendEmail() in controller and some is private method,but api call the model.How to solve this problem?

 

If there is not,whether through the API to send mail and choose a template?

2 answers to this question

Recommended Posts

  • 0
Posted

i think you need to do 2 call from  api

 

1 - for create/reply ticket

2 - fpor sending email

 

the call for creating/replty ticket , well return and id , use that ID to call the send email from API . not need to edit the core files .

  • 0
Posted

i think you need to do 2 call from  api

 

1 - for create/reply ticket

2 - fpor sending email

 

the call for creating/replty ticket , well return and id , use that ID to call the send email from API . not need to edit the core files .

 

 

thx,i also think so.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...