DataHosts Posted March 9, 2008 Share Posted March 9, 2008 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 0 Quote Link to comment Share on other sites More sharing options...
Daniel Posted March 9, 2008 Share Posted March 9, 2008 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. 0 Quote Link to comment Share on other sites More sharing options...
DataHosts Posted March 9, 2008 Author Share Posted March 9, 2008 thanks..however this was free as it was just a piece of code that you put in the tpl 0 Quote Link to comment Share on other sites More sharing options...
ask21900 Posted March 10, 2008 Share Posted March 10, 2008 You can add a script to the supportticketsubmit-confirm.tpl that will send an email via php mail... Most (if not all) cell companies have an email that will SMS the phone (ie: 2135551212@vtext.com, or 2135551212@mobile.att.net) 0 Quote Link to comment Share on other sites More sharing options...
DataHosts Posted March 10, 2008 Author Share Posted March 10, 2008 yea...that is what this script was, and was looking for it. Guess I will write from scratch. Was hoping to track this down as it worked great 0 Quote Link to comment Share on other sites More sharing options...
JohnLB Posted March 10, 2008 Share Posted March 10, 2008 Hey, Is this what you were looking for? http://forum.whmcs.com/showthread.php?t=5364 John 0 Quote Link to comment Share on other sites More sharing options...
Gears Posted March 11, 2008 Share Posted March 11, 2008 Try using the BCC option in General Settings > Configuration > Mail (look at the bottom) http://forum.whmcs.com/showthread.php?t=9797 0 Quote Link to comment Share on other sites More sharing options...
DataHosts Posted April 1, 2008 Author Share Posted April 1, 2008 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. 0 Quote Link to comment Share on other sites More sharing options...
DataHosts Posted April 1, 2008 Author Share Posted April 1, 2008 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. 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.