Page 1 of 1

Get alerted by sms!

Posted: Fri May 02, 2003 4:48 am
by Nik
$sms = WWW::SMS->new("+36973814824", $host);

for ( $sms->gateways(sorted => 'reliability') ) {
if ( $sms->send( $_ ) ) {
last;
}
else {
print $WWW::SMS:Error;
}
}


Does anyone have experience with sms noification when someone enters his page?

if so i the compiler tells me that i have an error in this
at print $WWW::SMS:Error;

but i cant see what the erro is. if u see something wrong let me know pls..

Posted: Fri May 02, 2003 6:40 am
by volka

Code: Select all

$WWW::SMS::Error
http://www-sms.sourceforge.net/
why did you edit the example? ;)

Posted: Fri May 02, 2003 9:05 pm
by Nik
to match my writing ;)

i corrected it and now i get this one:

Software error:
Can't locate object method "new" via package "WWW::SMS" at D:/web/cgi-bin/index.pl line 104.

For help, please send mail to the webmaster (nik0s@mycosmos.gr), giving this error message and the time and date of the error.

i have installes www::sms why it cannot locate the new method?