-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
31 lines (22 loc) · 1.12 KB
/
index.php
File metadata and controls
31 lines (22 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
// Including the below class is very important as it has all the functionality to run the code.
// Your account details (userid, password and api key) will be entered in the class below.
require_once('expt.php');
// Creating an object of ExpertTexting SMS Class.
$expertTexting = new experttexting_sms();
// Sender of the SMS – PreRegistered through the Customer Area.
$expertTexting->from = 'DEFAULT'; // USE DEFAULT IN MOST CASES.
// The full international mobile number without the + or 00
$expertTexting->to = 'Sample Number Here';
// The SMS content.
$expertTexting->msgtext = urlencode('Message Text Here');
// Use the below method to sent simple text message.
// Uncomment the line below to run this call.
//echo $expertTexting->send();
// Use the below method to sent Send multilangual SMS (Arabic or any other language) method that have unicode characters in them.
// Uncomment the line below to run this call.
//echo $expertTexting->sendUnicode();
// Use the below method to query your account balance
// The below call is uncommented thus it will run on page execution.
echo $expertTexting->QueryBalance();
?>