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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...