SMS Message



[insert_php]

use Twilio\Rest\Client;

if(isset($_POST['submit']))
{
$sender;
$number;
$message;

$sender=$_POST['sender'];
$number="+972525943390";
$message=$_POST['message'];

$account_sid = "AC611208a5b8900beb7a72558fefa13670";
$auth_token = "273f9de98c27b4e401f1388fcdd2bc83";
//$twilio_phone_number = "+972525943390";

$client = new Client($account_sid, $auth_token);

$client->messages->create(
$sender,
array(
"from" => $number,
"body" => $message
)
);
}
else "Errer";

[/insert_php]