websavers Posted March 21, 2014 Share Posted March 21, 2014 (edited) The documentation indicates that the ticket ID merge field variable is $ticket_id, however it is actually $ticket_tid. Therefore the following two lines should be adjusted, the first one for External API and the second for Internal: $postfields["mergefields[ticket_id]"] = "1"; should be $postfields["mergefields[ticket_tid]"] = "1"; and "ticket_id" => 1, should be "ticket_tid" => 1, --- Also, the actual ticket message is sent in plaintext and not HTML so one of the following two actions should be taken: 1. WHMCS should automatically run nl2br() on the $ticket_message variable before sending the email OR 2. The documentation should show the use of nl2br() in some way. For example: $postfields["mergefields[ticket_message]"] = nl2br("This is a test ticket"); Cheers, Jordan Edited March 21, 2014 by jas8522 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.