can anybody help with php code that can change the sender id to text, so that the receiver would see somethin like "James company" and not "012565355"...
in this case i am using a gsm phone connected to my pc.
Pc sms to mobile phone problem
Started by seyz4all, Aug 21 2008 10:19 AM
3 replies to this topic
#1
Posted 21 August 2008 - 10:19 AM
|
|
|
#2
Guest_Jordan_*
Posted 21 August 2008 - 01:18 PM
Guest_Jordan_*
Can you post your the code you are currently using?
#3
Posted 21 August 2008 - 01:20 PM
Everything depends on how your phone allows the sms sending from the PC. If there is a API and how you can control it. I think your problem is not in first hand a PHP problem.
You need to understand how your mobile sends sms from the computer. many phone manufacturers only allow this through a certain interface.
For text senders, I'm not sure about how that is provided, I don't think many operators provide that service for gsm phones.
at least in Europe, this is almost only provided by premium sms services from the operators.
You need to understand how your mobile sends sms from the computer. many phone manufacturers only allow this through a certain interface.
For text senders, I'm not sure about how that is provided, I don't think many operators provide that service for gsm phones.
at least in Europe, this is almost only provided by premium sms services from the operators.
#4
Posted 21 August 2008 - 10:18 PM
there softwares like ozeki sms server that connects to the phone via the computer but the script..
here is the send script
my question is, how can i add sender and make a text in there like ('john company') to be seen by the receiver instead of my phone number.
This is the second example code they have...
here is the send script
<?php
$gatewayURL = 'http://localhost:9333/ozeki?';
$request = 'login=admin';
$request .= '&password=abc123';
$request .= '&action=sendMessage';
$request .= '&messageType=SMS:TEXT';
$request .= '&recepient='.urlencode('+36205222245');
$request .= '&messageData='.urlencode("Hello World");
$url = $gatewayURL . $request;
//Open the URL to send the message
file($url);
?>
my question is, how can i add sender and make a text in there like ('john company') to be seen by the receiver instead of my phone number.
This is the second example code they have...
<?php
if ($submit=="Send")
{
$url='http://localhost:9333/ozeki?';
$url.="action=sendMessage";
$url.="&login=admin";
$url.="&password=abc123";
$url.="&recepient=".urlencode($recepient);
$url.="&messageData=".urlencode($message);
$url.="&sender=".urlencode($sender);
file($url);
}
?>
<html>
<form method=post action='index.php'>
<table border=0>
<tr>
<td>Sender</td><td><input type='text' name='sender'></td>
</tr>
<tr>
<td>Recepient</td><td><input type='text' name='recepient'></td>
</tr>
<tr>
<td>Message</td><td><input type='text' name='message'</td>
</tr>
<tr>
<td colspan=2><input type=submit name=submit value=Send>
</form>
</tr>
</table>
</form>
</html>
Edited by seyz4all, 21 August 2008 - 10:21 PM.
needed to add somthin


Sign In
Create Account


Back to top









