Jump to content

AddTicketReply not sending emails to clients

Recommended Posts

Hello experts,

I am still learning the ropes of WHMCS development.

I have this issue where I am trying to add a reply to tickets via the AddTicketReply API. I get a success message but no emails are sent to the customer. What am I missing?


'action' => 'AddTicketReply', 
'ticketid' => $var->ticket_identifier, //(id in DB)
'email' => 'system@test.com',
'name' => 'sysmsg',
'message' => 'Hello',
'clientid' => $client_id,
'markdown' => true,
'noemail' => false,
'responsetype' => 'json',

Share this post

Link to post
Share on other sites

Found the issue.
I was not passing 'adminusername'.

I changed 'name' to 'adminusername' and that worked


Not sure why though

Share this post

Link to post
Share on other sites

Join the conversation

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

Reply to this topic...

×   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.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated