Monday 27 February 2012

PHP Code for Sending free SMS through your way2sms account... :)

Guys here is code written in php for sending sms through your way2sms account. (UPDATED 13/06/2012)

This Code works fine for your small application where you want to send message through your website. Only thing you needed is an account on WAY2SMS . First create an account, then insert this code in your website and pass 4 argument to the function and just sit back and relax :), this code will do automatically everything for you..enjoy :)

You can download complete source in ZIP :
http://andromeda.nitc.ac.in/~ritesh/SmsApi/SmsApi.zip

Some Points to Remember...

  1. Some lines are truncated in this webpage so keep track of  double quote("") and new lines.
  2. You have to create a normal text file with the name cookie.txt and place it your local host or any folder and set absolute location of cookie file to $cookie_file_path_location variable. like this  $cookie_file_path_location ="/var/www/sms/cookie.txt";
    find Absolute path using php function realpath("your_cookie_fine_name");
  3. Cookie file must have full READ and WRITE permission. Give 777 permission in Linux and full read write permission in windows.
  4. Message length must be less than or equal to 140 character.
  5. By repeating Code for sending SMS in loop, you can send same message for many time without login and logout.
  6. Do not include '0' or '+91' before mobile number.
  7. Before using this code make sure you have installed PHP CURL libraries libcurl. It is necessary for executing this script. 


//Setting up variables 
$userID="9876543210"; //10 digit, way2sms id, from which admin will send SMS
$userPWD="123456"; // password for user id
$recerverNO="9876543210"; // recever's Number, who is going to receive sms
$message="Anything that you want to send but less than140 character"



******************** CODE START HERE ********************


function send_sms($userID,$userPWD,$recerverNO,$message)
{
     if(strlen($message)>140) // check for message length
         {echo "Error : Message length exceeds 140 characters" ; exit(); }
     if (!function_exists('curl_init')) // check for curl library installation
         {echo "Error : Curl library not installed";  exit(); }

     $message_urlencode=rawurlencode($message);
      // message converted into URL encoded form
     $cookie_file_path ="/var/www/oose/cookie.txt";
     // Cookie file location in your machine with full read and write permission

//START OF Code for getting sessionid
        $url="http://site5.way2sms.com/content/index.html";
        $header_array[0] = "GET /content/index.html HTTP/1.1";
        $header_array[1]= "Host: site5.way2sms.com";
        $header_array[2]= "User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:10.0.1) Gecko/20100101 Firefox/10.0.1";
        $header_array[3]= "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
        $header_array[4]= "Accept-Language: en-us,en;q=0.5";
        $header_array[5]= "Accept-Encoding: gzip,deflate";
        $header_array[6]= "DNT: 1";
        $header_array[7] = "Connection: keep-alive";
        $ch = curl_init();   //initialise the curl variable
        curl_setopt($ch, CURLOPT_URL,$url);
        //set curl URL for crawling
        curl_setopt($ch, CURLOPT_HTTPHEADER, $header_array); 
        //set the header for http request to URL 
        curl_setopt($ch, CURLOPT_REFERER, $reffer);  
         //set reffer url means it shows from where the request is originated.
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);  
         //it means after crawling data will return
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
        curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);
        curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
        // store the return cookie data in cookie file 
        $result = curl_exec ($ch); // Execute the curl function 
        curl_close ($ch);
//END OF Code for getting sessionid

//START OF Code for automatic login and storing cookies
        $post_data = "username=".$userID."&password=".$userPWD."&button=Login";
        $url = "http://site5.way2sms.com/Login1.action";
        $header_array[0]="POST /Login1.action HTTP/1.1";
        $header_array[1]="Host: site5.way2sms.com";
        $header_array[2]="User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:10.0.1) Gecko/20100101 Firefox/10.0.1";
        $header_array[3]="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
        $header_array[4]="Accept-Language: en-us,en;q=0.5";
        $header_array[5]="Accept-Encoding: gzip, deflate";
        $header_array[6]="DNT: 1";
        $header_array[7]="Connection: keep-alive";
        $header_array[8]="Content-Type: application/x-www-form-urlencoded";
        $ch = curl_init();
        curl_setopt( $ch, CURLOPT_URL, $url );
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
        curl_setopt($ch, CURLOPT_HTTPHEADER, $header_array);
        curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);
        curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
        curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
        curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
        curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
        curl_setopt($ch,CURLOPT_REFERER,"http://site5.way2sms.com/content/index.html");
        $content = curl_exec( $ch );
        $response = curl_getinfo( $ch );
        curl_close ($ch);
//END OF Code for automatic login  and storing cookies

// START OF Code is  getting way2sms unique user ID
        $url = "http://site5.way2sms.com/jsp/InstantSMS.jsp";
        $ch = curl_init();
        curl_setopt( $ch, CURLOPT_URL, $url );
        curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);
        curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
        curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
        $content = curl_exec($ch);
        curl_close ($ch);
        $regex = '/input type="hidden" name="Action" id="Action" value="(.*)"/';
        preg_match($regex,$content,$match);
        $userID = $match[1];
// END OF Code for getting way2sms unique user ID

// START OF Code for sending SMS to Recever
        $post_data = "HiddenAction=instantsms&catnamedis=Birthday&Action=".$userID."&chkall=on&MobNo=".$recerverNO."&textArea=".$message_urlencode;
        $url = "http://site5.way2sms.com/quicksms.action";
        $header_array[0]="POST /quicksms.action HTTP/1.1";
        $header_array[1]="Host: site5.way2sms.com";
        $header_array[2]="User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:10.0.1) Gecko/20100101 Firefox/10.0.1";
        $header_array[3]="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
        $header_array[4]="Accept-Language: en-us,en;q=0.5";
        $header_array[5]="Accept-Encoding: gzip, deflate";
        $header_array[6]="DNT: 1";
        $header_array[7]="Connection: keep-alive";
        $header_array[8]="Content-Type: application/x-www-form-urlencoded";
        $ch = curl_init();
        curl_setopt( $ch, CURLOPT_URL, $url );
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
        curl_setopt($ch, CURLOPT_HTTPHEADER, $header_array);
        curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);
        curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
        curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
        curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
        curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
   curl_setopt($ch,CURLOPT_REFERER,"Referer: http://site5.way2sms.com/jsp/InstantSMS.jsp");
        $content = curl_exec( $ch );
        $response = curl_getinfo( $ch );
        curl_close ($ch);
// END OF Code for sending SMS to Recever

//START OF Code for automatic logout
        $url = "http://site5.way2sms.com/jsp/logout.jsp";
        $header_array[0]="GET /jsp/logout.jsp HTTP/1.1";
        $header_array[1]="Host: site5.way2sms.com";
        $header_array[2]="User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:10.0.1) Gecko/20100101 Firefox/10.0.1";
        $header_array[3]="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
        $header_array[4]="Accept-Language: en-us,en;q=0.5";
        $header_array[5]="Accept-Encoding: gzip, deflate";
        $header_array[6]="DNT: 1";
        $header_array[7]="Connection: keep-alive";
        $cookie_file_path ="/var/www/oose/cookie.txt";
        $ch = curl_init();
        curl_setopt( $ch, CURLOPT_URL, $url );
        curl_setopt($ch, CURLOPT_HTTPHEADER, $header_array);
        curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);
        curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
        curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
        curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
        curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
        curl_setopt($ch,CURLOPT_REFERER,"Referer: http://site5.way2sms.com/jsp/InstantSMS.jsp");
        $content = curl_exec( $ch );
        $response = curl_getinfo( $ch );
        curl_close ($ch);
//END OF Code for automatic logout

}// end function send_sms



******************** CODE END HERE ********************

214 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
    Replies
    1. can anyone help me to send sms using php

      Delete
    2. I just wrote a simpler script in php. Try it: https://github.com/suyashbansal/Way2SMS-API

      Delete
    3. Dear Suresh
      I tried the code, it did not work. I made a page as given below and uploaded to my site
      ------------------------

      html
      head
      title Untitled Document /title
      meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
      head

      body

      body
      html
      --------------------------
      Kindly how should i make it working?
      Thanks
      Arun Sule
      aasuleg@gmail.com
      9823243766
      (I have removed all tags as it was acceptable to transmit this msg)

      Delete



    4. html
      head
      title Untitled Document /title
      meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
      head

      body

      body
      html
      --------------------------
      Kindly how should i make it working?
      Thanks
      Arun Sule
      aasuleg@gmail.com
      9823243766
      (I have removed all tags as it was acceptable to transmit this msg)

      Delete

    5. php
      include('way2sms-api.php');
      sendWay2SMS ( '9823243766' , 'S3933P' , '7798942694' , 'Hello World');

      php

      html
      head
      title Untitled Document /title
      meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
      head

      body

      body
      html
      --------------------------
      Kindly how should i make it working?
      Thanks
      Arun Sule
      aasuleg@gmail.com
      9823243766
      (I have removed all tags as it was acceptable to transmit this msg)

      Delete
    6. Sure. I can help.
      Why don't you raise an issue at the project on github here ->https://github.com/suyashbansal/Way2SMS-API/issues
      This way everyone else will also be able to know about the common fixes.
      Thanks

      Delete
    7. Code that u given in above url is not working can u help me plz

      Delete
  2. It's gr8 job man... It's working very nice. Thanks for your efforts.

    ReplyDelete
    Replies
    1. Please send me the working code to selvarajcse59@gmail.com

      Delete
    2. dude plz send workind code of sms through way2sms. i have work on this.. please

      Delete
    3. Hello Manoj , Can you please send the code to nadavati.siva776@gmail.com

      Delete
    4. plz send me code at kpdevelopers27@gmail.com

      Delete
    5. pls send me working code. its not working on my godaddy account. i am really in need of it . Kindly send it at harnish.kang2012@gmail.com

      Delete
    6. hi Manoj, Can u send me the working code to vamsi.krishna0539@gmail.com

      Delete
    7. This comment has been removed by the author.

      Delete
    8. Please Forward the code to my G-Mail balinenipraveen@gmail.com
      waiting for your replay.

      Delete
    9. Hey friend plz send me working code to rajivrai564@gmail.com...i am waiting for your replay

      Delete
    10. Please forward the code to me on agarwalshivam700@gmail.com
      Thanks in advance
      Wating for your reply

      Delete
    11. Plz manoj send me code on bhavins.csweb@gmail.com i am working on this type of project please.

      Delete
    12. Hi Manoj, Can u Please send me the code on imonkvishal@gmail.com your help will be appreciated. Waiting for your reply

      Delete
    13. please sir forword the working code on vivekkr.shaw88@gmail.com

      Delete
    14. Please send me the working code on shobhitr@iitk.ac.in

      Delete
  3. is this legal to use this .... i mean way2sms won't have objection is using there service like this... I have to use this code in my wesite(organisation website).

    so please tell me that can i use this code legaly...
    please do reply

    ReplyDelete
    Replies
    1. Yes 100% legal code and way2sms have officially announced it in thair copyright policy

      Delete
  4. thanx a lot....:) i'm getting sms's...is there any idea to remove userid phone number displaying at the beginning of the text messages???

    ReplyDelete
    Replies
    1. can u send me the working code. to ev.srinivas@gmail.com

      Delete
    2. can u plz send me the working code.

      My id is
      ganeshrc35@gmail.com

      Delete
    3. can you send the working code in to darsa1990@gmail.com

      Delete
    4. plz send the working copy to prince.ella@gmail.com

      Delete
    5. Plz send the working code to sandeepg84@gmail.com

      Delete
    6. can u please send me the working code to ravikiranbc1989@gmail.com

      Delete
    7. can u please send me the working code to selvarajcse59@gmail.com

      Delete
    8. hai can u please send me working code to my mail id:
      janardhan.559@gmail.com

      plz.......

      thanks in advance

      Delete
    9. hi can u please send me working code to my mail id:
      kulkarninachiketv@gmail.com

      Delete
    10. Hii.....can you please mail me the working code
      mail id arunyeroor@gmail.com

      Delete
    11. hello sir can u send me the way2sms php code
      vivekkr.shaw88@gmail.com

      Delete
  5. i am getting an error-"Notice: Undefined variable: reffer"
    and i am not getting sms all the time i send..plz help :(

    ReplyDelete
  6. HI,Thanks for sharing code.
    but iam getting errors like

    Notice: Undefined variable: reffer in location : curl_setopt($ch, CURLOPT_REFERER, $reffer);

    Notice: Undefined offset: 1 in location :
    $userID = $match[1];

    pls help me to solv this.

    ReplyDelete
    Replies
    1. i used the same but still i am getting the error "Notice: Undefined offset: 1 in location : $userID = $match[1];" and also the message is not sending pls any one help me

      Delete
  7. Great work !! thank you for sharing code :)

    ReplyDelete
    Replies
    1. if u have full code so please send zip file at archanapawar@gmail.com

      Delete
    2. if u have full code so please send zip file at archanapawar@gmail.com

      Delete
  8. greate Work..But On the live Server i did not get any msg is it Cause eroor on live server in my local host it working ?

    ReplyDelete
    Replies
    1. can u please send me the working code to ravikiranbc1989@gmail.com

      Delete
  9. this api works fine, THANKS A LOT..

    ReplyDelete
  10. can any one tel me the detail process of configuring this php.bcaz i've tried many times ,but my msgs are not delivered

    ReplyDelete
  11. I got error at this line
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    but your code really worked...Thanx mate

    ReplyDelete
  12. hi,
    Its not working for me,
    neither in localhost nor in live server,
    Any suggestion from you will be helpful,
    Thanks

    ReplyDelete
    Replies
    1. Parse error: syntax error, unexpected T_FUNCTION in C:\wamp\www\makemyjainshaadi.com\sendsms.php on line 10
      this the error in local

      Delete
  13. Hi,
    Can any of you give me your proper code (whose application is working).
    thanks

    ReplyDelete
  14. Hi, I modified the code to send messages to multiple contacts.
    It works fine for up to 10 contacts but beyond that I get the error "Fatal error: Maximum execution time of 30 seconds exceeded". Can you make suggestions on how I can rectify this, if possible. Thanks!

    ReplyDelete
    Replies
    1. Hi Aldon,

      Can you please help me I need this type of script which will send multiple contacts,I have tried but it's not working.
      I am working for the noble cause i.e NGO website (http://humanrightsngo.com/).

      Thanks
      Pawan

      Delete
    2. Hi Aldon,

      Can you please help me, I need this type of script which will send a SMS to atleast one contact,I have tried but it's not working...

      I will use ur script in Engineering Final year project.

      Please......

      Thanks and Regards
      Ramesh Sowpati

      Delete
  15. 'Curl library not installed', this error is coming how can it be solved, pls anyone can reply.



    Thanks in advance

    ReplyDelete
  16. Can we run it on Localhost connected with internet
    coz i m trying & nt working
    plz help

    ReplyDelete
  17. I am not getting error after integrating the code,but i am not able send sms .in my cookiesfile.txt it logs this error.
    site5.way2sms.com FALSE / FALSE 0 JSESSIONID A01~373E22D0B226307EA18D4FC3010D3B42.w801.
    Please help me to resolve this issues.

    Thnaks,
    Rabindra

    ReplyDelete
    Replies
    1. I am also getting same prb if solved means plz let me know!!!!!!!!

      Delete
  18. hey.. i am getting error "Undefined offset: 1.." at line number 75 :p
    anyone please tell me why i am seeing it??

    ReplyDelete
  19. Replies
    1. can u please send me the working code to selvarajcse59@gmail.com

      Delete
    2. can you please send the working code at ashish1995joshi@gmail.com

      Delete
  20. Notice: Undefined offset: 1 in /opt/lampp/htdocs/send_sms.php

    ReplyDelete
  21. I didnt get sms and also any error msg can tell wat is the prb.......?

    ReplyDelete
  22. use $reffer="http://site5.way2sms.com/jsp/InstantSMS.jsp";
    and i used the version downloaded in zip file so "Notice: Undefined offset: 1 in location : $userID = $match[1];" this error didn't came.....

    ReplyDelete
    Replies
    1. Can u pls put up the lines that contain variable $match in the zip file version?? give line numbers also.

      Delete
    2. hiii...I've used that $reffer...but still I'm getting offset error...Did u solve this??

      Delete
  23. Notice: Undefined offset: 1 in location :
    $userID = $match[1];
    finding error ..
    can any one tell me how to do variable $match in the zip file version

    ReplyDelete
    Replies
    1. U solved the error? If so, can u pls tell me wat did u do?

      Delete
    2. Notice: Undefined offset: 1 in location :
      $userID = $match[1];
      me to having the same error how to solve plz guide me!!

      Delete
  24. The zip file doesn't exist. can anyone re-upload or give the correct link for this file?

    ReplyDelete
  25. Looks like the site is changed, so it wont work anymore!

    ReplyDelete
  26. Notice: Undefined offset: 1 in location :
    $userID = $match[1];
    finding error ..
    can any one tell me how to do variable $match in the zip file version

    ReplyDelete
  27. http://site5.way2sms.com/jsp/InstantSMS.js Give a 404 page now ?

    ReplyDelete
  28. Undefined offset: 1 in location :
    $userID = $match[1];
    finding error ..
    can any one tell me how to do variable $match in the zip file version

    ReplyDelete
  29. Undefined offset: 1 in location :
    $userID = $match[1];
    finding error ..
    any one tell me how to do variable $match in the zip file version

    ReplyDelete
  30. I tried a lot i was uable to sort out. Please do send me a altered code to my mail id panpinky2@gmail.com.
    Please help me regarding this its urgent...
    Solution will be appreciated..

    ReplyDelete
  31. Undefined offset: 1 in C:\wamp\www\smser\sms.php on line 88

    Undefined variable: reffer in C:\wamp\www\smser\sms.php on line 37

    please provide the correct code..

    dhrubojyoti_das@yahoo.in

    ReplyDelete
  32. pleas tell me how to save all the code in single page or separate for each code section mentioned here

    ReplyDelete
  33. I am not Able to Download your "SmsApi/SmsApi.zip" file... it shows 'Page not found' error. Please give a live link to this file. I want to download this file.

    ReplyDelete
  34. preg_match($regex,$content,$match);
    $userID = $match[1];//Here Showing this error
    Undefined offset: 1

    ReplyDelete
  35. i am getting a http_code=404 in this
    url:'http://site5.way2sms.com/jsp/InstantSMS.jsp'

    This is the response text
    *url -> http://site5.way2sms.com/jsp/InstantSMS.jsp
    content_type ->
    http_code -> 404
    header_size -> 137
    request_size -> 136
    filetime -> -1
    ssl_verify_result -> 0
    redirect_count -> 0
    total_time -> 0.506365
    namelookup_time -> 2.4E-5
    connect_time -> 0.252878
    pretransfer_time -> 0.252933
    size_upload -> 0
    size_download -> 0
    speed_download -> 0
    speed_upload -> 0
    download_content_length -> -1
    upload_content_length -> 0
    starttransfer_time -> 0.50634
    redirect_time -> 0
    certinfo -> Array
    redirect_url ->

    ReplyDelete
  36. its showing following error
    Could not connect to MySQL: php_network_getaddresses: getaddrinfo failed: No such host is known.

    though i have taken care of every steps

    ReplyDelete
  37. This comment has been removed by the author.

    ReplyDelete
  38. http://andromeda.nitc.ac.in/~ritesh/SmsApi/SmsApi.zip This link not working,how can i download the zip file

    ReplyDelete
  39. can u please send me the working code to ravi.c269759@gmail.com
    thanks in advance

    ReplyDelete
  40. HI ,
    I want send sms to group of number from sdcard, those are on whatsapp.
    if this feasible or not from my android phone, plz let me know how ..
    Some coding hint want.
    Any one having some clue plz share

    ReplyDelete
  41. CAn any one send working code plz.....

    ReplyDelete
  42. sms to multiple user at same time using php...any have code please send me ..
    Thanks

    ReplyDelete
  43. plz send me working code. This code not working in my system. It didn't any error messages. plz send me working code to email kalyan.tmk@gmail.com

    ReplyDelete
  44. will you please send me working code on my id that will be very help full
    sonawane.kuldeep@gmail.com this is my email id
    thanks by that way.

    ReplyDelete
  45. pls send working code to my email id meanbudhasan@gmail.com

    ReplyDelete
  46. pls send working code to my email id iqbal2mlsolution@gmail.com

    ReplyDelete
  47. please send me working code to my id nilesh.parmar141@gmail.com

    ReplyDelete
  48. pristineseo.com/php-code-sending-free-sms-way2sms-account/

    ReplyDelete
  49. http://pristineseo.com/php-code-sending-free-sms-way2sms-account/

    ReplyDelete
  50. can you send me the zip file of code through my email id.
    gyaneswar.pritam@gmail.com

    ReplyDelete
  51. this code not working from localhost so please help me

    following error generated

    Notice: Undefined variable: reffer in C:\wamp\www\SMS-API\example2.php on line 34
    Call Stack
    # Time Memory Function Location
    1 0.0164 421192 {main}( ) ..\example2.php:0
    2 0.0164 421680 send_sms( ) ..\example2.php:6

    ( ! ) Notice: Undefined offset: 1 in C:\wamp\www\SMS-API\example2.php on line 85
    Call Stack
    # Time Memory Function Location
    1 0.0164 421192 {main}( ) ..\example2.php:0
    2 0.0164 421680 send_sms( ) ..\example2.php:6

    ReplyDelete
  52. on line 7 a semicolon is missing ; and curl commands full of error and func not invoked

    ReplyDelete
  53. undefine variable reffer at line 30
    undefine offset 1 at line 81

    ReplyDelete
    Replies
    1. Can u mail the code to pranavkpr1@gmail.com

      Delete
  54. Can u mail the code to pranavkpr1@gmail.com

    ReplyDelete
  55. CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set
    on line 36 and 105
    THIS IS THE ERROR I AM GETTING

    ReplyDelete
  56. Please send me the working code
    dhaneeshk1983@gmail.com

    ReplyDelete
  57. will u please send me the working code............pls...........urgent

    ReplyDelete
  58. Please send me the working code ktldbphpdeveloper@gmail.com

    ReplyDelete
  59. Pls send me working code on my mail id nscutenidhi4@gmail.com

    ReplyDelete
  60. Pls send me working code on my mail id s.sureshkumar2@gmail.com

    ReplyDelete
  61. Plssss Send Me the working code at htmcoding@gmail.com

    ReplyDelete
  62. bro plz mail me smsapi.zip file to my mail my email id is : daudihuzefa2@gmail.com.
    b'coz when i try to download "http://andromeda.nitc.ac.in/~ritesh/SmsApi/SmsApi.zip" this file apache error occurred so plz e mail me...
    thank you.

    ReplyDelete
  63. Plssss Send Me the working code at daudihuzefa2@gmail.com

    ReplyDelete
  64. Plssss Send Me the working code at daudihuzefa2@gmail.com

    ReplyDelete
  65. Working fine but adding my number and spaces at the beginning of the message.

    ReplyDelete
    Replies
    1. Hello Sager, wen did you try this code. can we send more then 50 mesages using it. I want to use it for OTP purpose. Can you please mail me working code here : sunil.sonyrawat.rawat@gmail.com
      Thanks Bro Advance..

      Delete
  66. Sagar pls send ur code to ngelekanyo@gmail.com

    ReplyDelete
  67. Please send me the working code to khanmamun772@gmail.com

    ReplyDelete
  68. This comment has been removed by the author.

    ReplyDelete
  69. please send me working code to

    darshanjains07@gmail.com

    i am getting this error :
    Notice: Undefined offset: 1 in C:\xampp\htdocs\gluehost\way2sms2.php on line 82





    ReplyDelete
  70. I have getting error like
    Notice: Undefined variable: reffer

    Notice: Undefined offset: 1 for $userID = $match[1];
    can anybody pls. help me solve my error or send me working on code my email prakashnipun@gmail.com

    Thanks.

    ReplyDelete
  71. This comment has been removed by the author.

    ReplyDelete
  72. Please send me working code to

    arulprasadj@outlook.com

    ReplyDelete
  73. please send me the working code @
    kaustubh.agrawal2000@gmail.com

    ReplyDelete
    Replies
    1. BRO I HAVE SENT YOU THE MAIL... :)

      https://drive.google.com/file/d/0B9DBPH5xymtxN1MwN0d6NHNnaWs/view?usp=sharing

      CHANGE YOUR MOBILE NUMBER AND PASSWORD IN INDEX.HTML

      Delete
    2. Hello Pandian,
      Would you please send me working code on my mail id
      shashank.webdeveloper@gmail.com
      Thanks in advance :)

      Delete
    3. https://drive.google.com/file/d/0B9DBPH5xymtxN1MwN0d6NHNnaWs/view?usp=sharing

      Delete
    4. Error getting domain - can u help me

      Delete
  74. I need scheduled sms via way2sms.. is it possible???? anyone can help me.. I am doing free sms.. for my clients..

    ReplyDelete
    Replies
    1. Hello Pandian,
      Would you please send me working code on my mail id
      shashank.webdeveloper@gmail.com
      Thanks in advance :)

      Delete
  75. hello guys someone send me proper code for send sms through way2sms
    mahindrakarsrinivas@gmail.com

    ReplyDelete
  76. please send me sms code in php for way2 sms api

    ReplyDelete
  77. please send me working sms code in php email: manish19sharma@gmail.com

    thanks in advance

    ReplyDelete
  78. please send me working sms code in php email: itganesh2014@gmail.com

    Thanks in advance..

    ReplyDelete
    Replies
    1. Working code

      PHP Code for Sending free SMS through your way2sms. Download from the link.

      https://drive.google.com/file/d/0B9DBPH5xymtxN1MwN0d6NHNnaWs/view?usp=sharing

      Delete
    2. Thanks for you given a working code link its very nice.

      Delete
    3. this also give error : Error Logging InHTTP/1.1 302 Found Server: Apache-Coyote/1.1 Set-Cookie: JSESSIONID=A03~8FCE5FADC0678CCE1FB2FE9C1C1BB259.w803; Path=/; HttpOnly Location: http://site21.way2sms.com/vem.action;jsessionid=8FCE5FADC0678CCE1FB2FE9C1C1BB259.w803?id=8FCE5FADC0678CCE1FB2FE9C1C1BB259.w803 Content-Length: 0 Date: Sat, 06 Feb 2016 22:07:31 GMT Connection: close HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=ISO-8859-1 Transfer-Encoding: chunked Content-Encoding: gzip Vary: Accept-Encoding Date: Sat, 06 Feb 2016 22:07:31 GMT Connection: close

      Delete
  79. please send me working code at haresh268@gmail.com
    i need urgent I have task related to this api

    ReplyDelete
  80. Hello I am Karthik , and how 2 send SMS using PHP for give a proper working code and procedure for send my mail id: atturkarthik14@gmail.com

    ReplyDelete
  81. This comment has been removed by the author.

    ReplyDelete
  82. Please visit following link http://ravikumar509.blogspot.in/ This person has developed code for sending sms in php via waytosms and it is properly working by now

    ReplyDelete
  83. Can we remove “Sent via WAY2SMS.COM” from SMS . If we can please let me know and i appreciate your work, Thank you………

    ReplyDelete
  84. hey sir
    this link is not working its showing port 80 something 404 error

    ReplyDelete
  85. It's nice job man. It's working very nice. Thanks for your efforts.

    ReplyDelete
    Replies
    1. Working fine for me Thank you (muruganactive90@gmail.com)

      Delete
  86. This comment has been removed by the author.

    ReplyDelete
  87. I read your post that was amazing. thanks for sharing this article.
    Bulk SMS Services Provider

    ReplyDelete
  88. great blog to read... explanation are very clear in this blog so easy to understand

    php training | php training in chennai | best php training | best php training in chennai

    ReplyDelete
  89. Interesting Blog..! See more @ http://bit.ly/2oVutDY

    ReplyDelete
  90. Hello Ritesh
    The link you provided above for downloading ZIP file is giving 404 error. Can you pls correct it or else you can send that on bharatrawat000@gmail.com.
    Some of lines you provided are not working.

    ReplyDelete
  91. nice blogs

    <a href="http://www.sanjaybulksms.coSms Gateway Api</a>

    ReplyDelete

  92. I wondered upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.
    iOS App Development Company
    iOS App Development Company

    ReplyDelete
  93. Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing..
    Digital Mobile Marketing
    SMS API
    SMS Marketing

    ReplyDelete
  94. web dogs is best bulk sms service provider company in mumbai. They provide all types of service like seo, smo, ppc, online marketing and many more.
    Bulk Sms Service Provider Company In Mumbai | Bulk Sms Service

    ReplyDelete
  95. Thanks for sharing this post. Your post is very informative. I have read all your posts and all are very informative. promotional sms service provider in india

    ReplyDelete
  96. This comment has been removed by the author.

    ReplyDelete
  97. Maxwell Communication is one of the leading bulk SMS service, Transactional & Promotional SMS Service providers in Chennai, India. We guide you to reach your targets easily@ MaxwellCommunication. SMS Service providers in Chennai

    ReplyDelete
  98. Bulk SMS is utilized as promotional SMS for SMS marketing. Our bulk SMS marketing solution helps you to send cheap bulk promotional SMS service provider in India. It's least expensive marketing solution to reach achieve imminent clients. MAXWELL Communication furnishes bulk SMS service with NDNC filter, so you don't have any lawful issues with NDNC Registry.Send Sms Online India.

    ReplyDelete
  99. This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.Well, got a good knowledge.


    MEAN stack training in Chennai

    MEAN stack training in bangalore

    MEAN stack training in tambaram

    MEAN stack training in annanagar

    ReplyDelete
  100. This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.Well, got a good knowledge.


    MEAN stack training in Chennai

    MEAN stack training in bangalore

    MEAN stack training in tambaram

    MEAN stack training in annanagar

    ReplyDelete
  101. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.

    python training in omr

    python training in annanagar | python training in chennai

    python training in marathahalli | python training in btm layout

    python training in rajaji nagar | python training in jayanagar

    ReplyDelete
  102. This blog is the general information for the feature. You got a good work for these blog.We have a developing our creative content of this mind.Thank you for this blog. This for very interesting and useful.
    Data Science Training in Chennai
    Data science training in bangalore
    Data science online training
    Data science training in pune
    Data science training in kalyan nagar
    selenium training in chennai

    ReplyDelete
  103. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.


    rpa training in Chennai | rpa training in velachery

    rpa training in tambaram | rpa training in sholinganallur

    rpa training in Chennai | rpa training in pune

    rpa online training | rpa training in bangalore

    ReplyDelete
  104. The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.
    Devops Training in pune|Devops training in tambaram|Devops training in velachery|Devops training in annanagar
    DevOps online Training

    ReplyDelete
  105. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.

    rpa training in Chennai | rpa training in pune

    rpa training in tambaram | rpa training in sholinganallur

    rpa training in Chennai | rpa training in velachery

    rpa online training | rpa training in bangalore

    ReplyDelete
  106. This is such a great post, and was thinking much the same myself. Another great update.
    python training in chennai
    python training in chennai
    python training in Bangalore

    ReplyDelete
  107. Really very nice blog information for this one and more technical skills are improve,i like that kind of post.

    java training in chennai | java training in USA

    selenium training in chennai

    ReplyDelete
  108. Really very nice blog information for this one and more technical skills are improve,i like that kind of post.

    java training in chennai | java training in USA

    selenium training in chennai

    ReplyDelete
  109. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    python online training
    python training in OMR
    python training in tambaram

    ReplyDelete
  110. Nice tutorial. Thanks for sharing the valuable information. it’s really helpful. Who want to learn this blog most helpful. Keep sharing on updated tutorials…
    python online training
    python training in OMR
    python training in tambaram

    ReplyDelete
  111. Hmm, it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well as an aspiring blog writer, but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d appreciate it.

    Best Selenium Training in Chennai | Selenium Training Institute in Chennai | Besant Technologies

    Selenium Training in Bangalore | Best Selenium Training in Bangalore

    AWS Training in Bangalore | Amazon Web Services Training in Bangalore

    ReplyDelete
  112. Thanks for sharing this unique information with us. Your post is really awesome. Your blog is really helpful for me..
    I have read your blog its very attractive and impressive. Nice information. It helped me alot.
    Organiic Oil is very useful for skin and hair. It improve complexion and skin tone.

    natural oil
    pure herbal oil
    ayurvedic oil store in jaipur
    ayurvedic oil

    ReplyDelete
  113. Luke Mckey Mckey
    From: mckeyluke@gmail.com 30/11/2018 10:41 PM
    Mobile: 8016862141
    Company: Brandnetizen
    Address: kol
    Hello, How are you? Hope you are fine. I have been checking your website quite often. It has seen that the main keywords are still not in top 10 rank. You know things of working; I mean the procedure of working has changed a lot. So I would like to have opportunity to work for you and this time we will bring the keywords to the top 10 spot with guaranteed period. There is no wondering that it is possible now cause, I have found out that there are few things need to be done for better performances (Some we Discuss, in this email). Let me tell you some of them - 1. Title Tag Optimization 2. Meta Tag Optimization (Description, keyword and etc) 3. Heading Tags Optimization 4. Targeted keywords are not placed into tags 5. Alt / Image tags Optimization 6. Google Publisher is missing 7. Custom 404 Page is missing 8. The Products are not following Structured markup data 9. Word-Press is not installed properly, in the blogs 10. Website Speed Development (Both Mobile and Desktop) Please check via Google Developer - https://developers.google.com/speed/pagespeed/ 11. Favicon needs to be changed too. 12. Off –Page SEO work Lots are pending…………….. You can see these are the things that need to be done properly to make the keywords others to get into the top 10 spot in Google Search & your sales Increase. Also there is one more thing to mention that you did thousands of links that time for your website, which are considered as spam after Google roll outs several updates of Panda and penguin. We need to remove them too. Sir/Madam, please give us a chance to fix these errors and we will give you rank on these keywords. Please let me know if you encounter any problems or if there is anything you need. If this email has reached you by mistake or if you do not wish to take advantage of this advertising opportunity, please accept my apology for any inconvenience caused and rest assured that you will not be contacted again. Many thanks for your time and consideration, Looking forward Regards Luke Mckey If you did not wish to receive this, please reply with "unsubscribe" in the subject line. Disclaimer: This is an advertisement and a promotional mail strictly on the guidelines of CAN-SPAM Act of 2003. We have clearly mentioned the source mail-id of this mail and the subject lines and they are in no way misleading in any form. We have found your mail address through our own efforts on the web search and not through any illegal way. If you find this mail unsolicited, please reply with "unsubscribe" in the subject line and we will take care that you do not receive any further promotional mail.

    ReplyDelete
  114. After reading your post I understood that last week was with full of surprises and happiness for you. Congratz! Even though the website is work related, you can update small events in your life and share your happiness with us too.
    angularjs online training

    apache spark online training

    informatica mdm online training

    devops online training

    aws online training

    ReplyDelete
  115. From your discussion I have understood that which will be better for me and which is easy to use. Really, I have liked your brilliant discussion. I will comThis is great helping material for every one visitor. You have done a great responsible person. i want to say thanks owner of this blog.
    Microsoft Azure online training
    Selenium online training
    Java online training
    uipath online training
    Python online training


    ReplyDelete
  116. Our Ready php code/ script will help you to save time and efforts at a large level. Your enterprise/organization's php application can be easily integrated with our services. However, we provide ready to use bulk SMS API PHP code that helpfuls to send various information to your user's mobile.

    ReplyDelete
  117. Our Ready php code/ script will help you to save time and efforts at a large level. Your enterprise/organization's php application can be easily integrated with our services. However, we provide ready to use bulk SMS API PHP code that helpfuls to send various information to your user's mobile.

    ReplyDelete
  118. Very Nice article ! great job. Thanks for sharing.
    Promote your business brands with bulk SMS marketing, contact us at +917404900081
    bulk SMS provider
    send bulk SMS
    bulk SMS service

    ReplyDelete
  119. I am very much pleased with the contents you have mentioned. I wanted to thank you for this great article. Vergil DMC 5 Coat

    ReplyDelete