1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem send sms in using perl

Discussion in 'Perl' started by rahul_mawana, Apr 6, 2009.

  1. rahul_mawana

    rahul_mawana New Member

    Joined:
    Apr 4, 2009
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    0
    Hi friends, i m trying to send sms in perl using ww.sms1.in sms gateway service here is my code


    use HTTP::Request::Common;
    use LWP::UserAgent;
    use SMS::API;


    my $sms = SMS::API->new(
    'email' => "**********",
    'password' => "*******",
    'to' => "91********",
    '$from' => "Naps", #Optional
    'message'=>"hello how are you", #Max 160 characters Message.
    ) or die $!;
    if($send = $sms->send)
    {
    print"Message sent successfully";
    }

    else
    {
    print"msg cant go";
    }

    everything ok but msg not coming on phone plz helpppppppppp meeeee friends
    Thanks
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    At times when the number is in DND list some SMS provider does not deliver the SMS.
     
  3. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    Did u try contacting the SMS provider?
     
  4. rahul_mawana

    rahul_mawana New Member

    Joined:
    Apr 4, 2009
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    0
    yes i connected it is being connected
     
  5. rahul_mawana

    rahul_mawana New Member

    Joined:
    Apr 4, 2009
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    0
    SIR is there any perl module that can be used to send sms using 160by2.com
     
  6. ungalnanban

    ungalnanban New Member

    Joined:
    Feb 19, 2010
    Messages:
    45
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Chennai
    Here I attached SMS module and example program.

    using this module we can send free sms from way2sms.com

    for sending sms you need the way2sms account.

    download the sms.zip file and use it.

    [ Using this module only I am sending SMS to my friends. ]
     

    Attached Files:

    • sms.zip
      File size:
      2.5 KB
      Views:
      34

Share This Page