Support forum
Hello Chester,
If a message is marked as 'Sent' in the send log of Diafaan SMS Server it means that the message is received and accepted by the SMS network/service. When the message is not received on the mobile phone then the most likely cause is that the message is blocked by the mobile network. Perhaps the message is regarded as spam or maybe the network blocks duplicate messages.
Regards, Henk
8:01 am
I'm using the basic code from the website with little modification:
<?php
echo WISMS( '+xxxxxxxxxxxxxx', 'XXXUpdate: Your child XXXXX tapped in at 11:49:05 AM today Jan 10, 2024.');
function WISMS($number, $message)
{
/* Create the HTTP API query string */
$query = 'http://192.168.93.214:9710';
$query .= '/http/send-message/';
$query .= '?username='.urlencode("admin");
$query .= '&password='.urlencode("password");
$query .= '&to='.urlencode($number);
$query .= '&message='.urlencode($message);
/* Send the HTTP API request and return the response */
return file_get_contents($query);
}
It works however, if I hit refresh or call the code again, it sends in the console but i can't receive the message on my mobile number (to) anymore.
1 Guest(s)
Add Reply
Add Topic
Offline
Quote