Jump to content

Pc sms to mobile phone problem

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
seyz4all

seyz4all

    Newbie

  • Members
  • PipPip
  • 13 posts
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.

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Can you post your the code you are currently using?

#3
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
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.

#4
seyz4all

seyz4all

    Newbie

  • Members
  • PipPip
  • 13 posts
there softwares like ozeki sms server that connects to the phone via the computer but the script..

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