This topic is: not a support question
-
Where can add this code for transactional sms gateway,so that when a person buys a tickets ,they get ticket email and also sms to their phone about the ticket information.
<?php
//php sample code$username=’ellywanjiku’;
$key=’EoyO2JzvVQrx7amX6snCyfw8C3lZr1XjkvqS0cB3H1LZBWTbBb’;
$senderid=’SMARTLINK’;
$phonenumber=’254702497334′;
$message=urlencode(‘hello’);
$live_url =’https://sms.movesms.co.ke/api/compose?username=’.$username.’&api_key=’.$key.’&sender=’.$senderid.’&to=’.$phonenumber.’&message=’.$message.’&msgtype=5&dlr=0′;
$parse_url=file($live_url);
$output1= $parse_url[0];
echo $output1;?>