Pat Rice wrote:
Hi all
I'm just wondering whats the best way to send an SMS thought perl ?
Has any one experience of doing such a task ?

I'm looking at CPAN and finding:
SMS-Send
Net-SMS

any recommendations ?
also and ideas about connecting up a gsm phone and making it talk with
perl, for sending SMS

Thanks in advance
Pat

Hello Pat,

This is pretty easy to do with the right HW. Most of the mobile phones don't support plain text SMSs, so You have to code them in the correct way. What I use is GSM gateway (nokia, telular, etc...) and I send AT commands over serial connection. Here is a pseudo code for You (You need to write some on Your own and to ask for help...):

# connect to serial port (or USB)
set_port_parameters();

# send AT commands
write_to_serial("Correct AT for Your device");
wait_for_result();

write_to_serial("Some more commands");
wait_for_result();

Best Regards,
Marko

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to