Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Perl (http://www.go4expert.com/forums/perl/)
-   -   Problem send sms in using perl (http://www.go4expert.com/forums/send-sms-using-perl-t16817/)

rahul_mawana 6Apr2009 16:26

Problem send sms in using perl
 
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

shabbir 6Apr2009 16:29

Re: Problem send sms in using perl
 
At times when the number is in DND list some SMS provider does not deliver the SMS.

pradeep 6Apr2009 18:37

Re: Problem send sms in using perl
 
Did u try contacting the SMS provider?

rahul_mawana 7Apr2009 15:31

Re: Problem send sms in using perl
 
yes i connected it is being connected

rahul_mawana 8Apr2009 16:20

Re: Problem send sms in using perl
 
SIR is there any perl module that can be used to send sms using 160by2.com

ungalnanban 19Feb2010 14:30

Re: Problem send sms in using perl
 
1 Attachment(s)
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. ]


All times are GMT +5.5. The time now is 14:30.