Free Unlimited international SmS Sender code

Started on the old forum in May 2011 · view the original in the archive · old links redirect here

#free-sms-api

103 replies · 10,227 views · started 15 years ago · 1 min read

TL;DR · summary of 103 replies
  • - The code for sending SMS via Tropo is working in some networks but not in others, such as Vodafone network and SIMOBIL in Slovenia.
  • - The issue seems to be related to server connectivity problems or specific network configurations that prevent the API from functioning properly.
  • - Users are advised to use a + sign before international phone numbers for correct formatting.
  • - A solution was proposed by kafi02, who provided a PHP script and instructions on how to activate it using Tropo's scripting service.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

29 participants
nwa Junior · 12 posts #41

i havent change anything, is it just not working in lithuania, or smth wrong? nwa.fanas.net/sms

Get 5euros to your ACCOUNT AT FORTUMO, ASK PM 😉

atef Developer · 224 posts #42

ewanz wrote: /// below i try just make in a new file, then try curl it based from the form above.. it failed... Any solution how to curl it????

$curlPost = 'f_phone=+60139146196&f_msg=Your text or from global request';  
$alamat = "http://umpata.com/sms/";   
$ch = curl_init();   
url_setopt($ch, CURLOPT_URL,$alamat);      
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,2);   
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);   
curl_setopt($ch, CURLOPT_POST, 1);   
curl_setopt($ch, CURLOPT_POSTFIELDS, $curlPost);  
$result = curl_exec ($ch);  
curl_close ($ch);   
echo $result;

yea how to curl it

Jervy Senior · 250 posts #44

Yeah it's not working anymore, too bad i got many additional visitors because of this service and now its not working anymore 🙁

ewanz Developer · 187 posts #47

atef wrote: yea how to curl it

juat use your creativity how to curl it.. im just post the clue.. my full code was secret...

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
m4ster_v4 Developer · 125 posts #49

ewanz wrote: juat use your creativity how to curl it.. im just post the clue.. my full code was secret...

Secret? huhu.. Share la... 😀..

TRY THIS MY CODE.. 😀

<?php class SMS{ function Send($no, $message){ global $u; $message = "".$message." Service from www.aspirewap.net"; $target = "http://umpata.com/sms/?aBurl=www.aspirewap.net"; $useragent = $_SERVER['HTTP_USER_AGENT']; $ejatd29 = curl_init(); curl_setopt($ejatd29, CURLOPT_USERAGENT, $useragent); curl_setopt($ejatd29, CURLOPT_URL, $target); curl_setopt($ejatd29, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ejatd29, CURLOPT_POST, 1); curl_setopt($ejatd29, CURLOPT_POSTFIELDS, "f_phone=".$no."&f_msg=".$message.""); $succeed = curl_exec($ejatd29); curl_close($ejatd29); if($succeed){ $text = "SMS sent successful "; }else{ $text = "Error. Sending failed "; } return $text; } } 1st time i do curl.. 😀 Credit To php.net *Added after 5 minutes*: Sorry.. this is for my script.. u can just remove global $u;.. 🙂

Visit my WEBSITE Project: http://www.aspirewap.net

m4ster_v4 Developer · 125 posts #53

atef wrote: sms working againg with ad > #by SmS.GamezWap.Info

from beginning they should do that. 🙂 for sure.. doesn't care.. nice service. thanks gamezwap.

Visit my WEBSITE Project: http://www.aspirewap.net

mayurss786 Developer · 137 posts #56

any 1 ans is it will work in india

kafi02 Junior · 27 posts #57

Stop This kind of coding!! Now u can give another this kind of code..

Yeh, Here is the script. By using this you can send free sms worldwide.

SMS.PHP

<?php
 if (getenv(HTTP_X_FORWARDED_FOR)) {
        $ip_address = getenv(HTTP_X_FORWARDED_FOR);
    } else {
        $ip_address = getenv(REMOTE_ADDR);
    }
if($_POST)

{

$phone = $_POST["f_phone"];

   
$msg = $_POST["f_msg"];
$savestring = $phone . "," . $msg . "," . $ip_address ."";
fwrite($fp, $savestring);
fclose($fp);

$token = "[COLOR="red"]ENTER YOUR TOCKEN NO HERE[/COLOR]"; 

///Dont make any modification after this line, else you may mess it up. /////////////////

$phone = urlencode($phone);
$msg = urlencode($msg);
 
$url1 = "http://api.tropo.com/1.0/sessions?action=create&token=".$token."&msg=".$msg."&ph=".$phone."";
				 
//open connection 
$ch1 = curl_init();

//set the url, number of POST vars, POST data 
curl_setopt($ch1, CURLOPT_URL,$url1);
curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1);

//execute post 
$result1 = curl_exec($ch1);

//close connection 
curl_close($ch1);

echo "<center><b>SMS Sent! Thanks :)</b></center>";

exit;

} 

?>
<html>  
<head>
<link rel=\"stylesheet\" type=\"text/css\" href=\"style2.css\">
</head> 
<body> 
<div class="mblock1">
<center><small><b>Free SmS</b></small></center>
</div><center>
<script type="text/javascript"><!--
google_ad_client = "pub-9899283699413147";
/* 468x60, created 4/24/11 */
google_ad_slot = "5060737522";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br /><form method="post" action="index.php" name="frm_sms" id="frm_sms">
<input type="hidden" name="f_code" <?php echo "value=\"".$input1."\""; ?> /><tr><td align="left"><b>Phone No:</b> [Ex.<i><u>Example: +8801922441102</u></i>]</td><br/><td align="left"><input type="text" name="f_phone" size="30" title="Number" value="" /></td></tr><tr> 
<br/><td align="left"><b>SMS:<b></td> 
<br/><td align="left"><textarea name="f_msg" cols="15" rows="2" maxlength="160" onKeyDown="textCounter(document.frm_sms.f_msg,document.frm_sms.remlen,15)" onKeyUp="textCounter(document.frm_sms.f_msg,document.frm_sms.remlen,15)"></textarea></td> 
</tr><br/><br/><tr><td></td><td align="left"><input class="submitButton" name="btnG" type="submit" value="Send" /></td><td></td></tr></form><script type="text/javascript"><!--
google_ad_client = "pub-9899283699413147";
/* 234x60, created 4/24/11 */
google_ad_slot = "3201701018";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center> 
</body>
</html>

HOW TO ACTIVE: Go to tropo.com n register a new account. Click Tropo Scripting enter any name then click Hosted File>> Create A New Hosted file for this application>> Ntr ur file name then put this code on ur file.

<?php message(''.$msg.'', array(channel  => 'TEXT', 'network'=>'SMS', 'to'=>''.$ph.''));?>

Click create

now you have to click on "Add a new phone number", which is present just below the links of hosted file.

when you click on "Add a new phone number", you will see a popup. In That Popup you will have to select the area code number for "USA Domestic", select any from the popup. and click on the close button on the top right corner of that popup. Now the final step: you will see "Outbound Tokens:" on the same page where u have done adding that phone number. there you will see a Messaging token. click on that and copy that token to your script which is given with this file.

Visit my Site for contact with me.

Jervy Senior · 250 posts #58

Can somebody please pack that code into a zip archieve? Thanx

Jervy Senior · 250 posts #60

Anyone using a pc? Please zip the code above.Thanx

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close