Jump to content

Support Ticket Text Message


Recommended Posts

Awhile back there was a post with some code for the final of submitting a ticket that also sent a text message. Well...I have lost the code and looking to set this up with 3.6. I searched the forums, but alas have failed. If anyone has this code can you please share.

 

Matt,

 

I believe it is in the archive of 2.5

Link to comment
Share on other sites

We use txtlocal.com and have this in the template supportticketsubmit-confirm.tpl..

 

{php}
$info = "1";
$address = "www.txtlocal.com/sendsmspost.php";
$message = "You have a new support ticket waiting for your attention";
$message = urlencode($message); //encode special characters (e.g. £,& etc)
$from = "";
$uname = "";
$pword = "";
$selectednums = "";
$data = "uname=" . $uname . "&pword=" . $pword . "&message=" . $message . "&from=" . $from . "&selectednums=" . $selectednums . "&info=" . $info;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://$address");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec ($ch);
curl_close ($ch); 
{/php}

 

Obviously you'd have to fill in the username and password etc.

Link to comment
Share on other sites

  • 3 weeks later...
Hey,

 

Is this what you were looking for?

http://forum.whmcs.com/showthread.php?t=5364

 

John

 

Sort of...will give that a shot...thanks

 

Try using the BCC option in General Settings > Configuration > Mail (look at the bottom)

 

http://forum.whmcs.com/showthread.php?t=9797

 

Hmmm..never thought of that..stupid me!

 

 

The old post showed it in the supportticketsubmit-confirm.tpl

 
<p align="center"><strong>{$LANG.supportticketsticketcreated} <a href="viewticket.php?tid={$tid}&c={$c}">#{$tid}</a></strong></p>
<p>{$LANG.supportticketsticketcreateddesc}</p>
{php} 
mail(user@provider.com, '$tid'); 
{/php}

 

Was wanting to stay this method since that is how it was. Wanting to really do it with Tickets and Orders. Will look into the post you mentioned JohnLB and investigate that.

Link to comment
Share on other sites

Try using the BCC option in General Settings > Configuration > Mail (look at the bottom)

 

http://forum.whmcs.com/showthread.php?t=9797

 

Tried this and it is not exactly what I am looking for. I was wanting a text to be sent to my cell that had the following info:

 

New Tickets

($title) ($tid) has been opened by ($user). 
<br>
(this is where the body of the ticket would go)

 

New Orders

A new order has been placed with ID ($orderid) in the amount of ($amount) 

 

 

I know the variables are not correct, but just to get the idea.

Link to comment
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.

Guest
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