Hi,
This time I am working on PERL. I want to send SMS alert using my perl script.
Can i do this. If yes then how?
To send sms you need a gateway that is willing to accept your message and dispatch to the respective networks. For this you need to register and stuff which is a tedious process.
What i do is.... send an sms from email. That way you can send sms to any mobile in india with the help a email which is sent to mobile carriers.
But first you need to have a mail server ready to send mails. you also need to install the Mail::SendEasy module in perl.
use Mail::SendEasy ;
my $mail = new Mail::SendEasy(
smtp => 'mail server adddress' ,
user => 'user name' ,
pass => password ,
) ;
my $status = $mail->send(
from => 'abc@abc.com' ,
from_title => 'hi' ,
reply => 'abc@abc.com' ,
error => 'abc@abc.com' ,
to => '9845111111@airtelkk.com' ,
cc => '' ,
subject => "TEST" ,
msg => "hi" ,
html => "<b>The HTML Msg...</b>",
msgid => "0101" ,
) ;
if (!$status) { print $mail->error ;}
The above script will send a sms to 9845111111 which falls inside airtell network.
But you will only be able to send 2 sms this is because they wont spam sms to be sent using this method.
The disadvatage of this is that the text will be converted to its respective ascii equivalent and sent to the mobile...so i am not sure how to handle that.
you can find the mail ids of the mobile networks here
http://www.funsms.net/freesms2india.htm
Hutch has disabled this feature.
Let me know on how it helped to geek491@yahoo.co.in