--- /dev/null
+# Messaging function for Teletouch pagers using e-mail delivery via
+# the e-mail status function
+
+$MSGFUNCS{'verizon'} = \&msg_verizon;
+
+sub msg_verizon {
+ my ($pager,$subject,$body) = @_;
+
+ &verizon_page($pager,$subject,$body);
+ &debug( "verizon page sent to $pager" );
+}
+
+sub verizon_page {
+ my ($recipient,$subject,$body) = @_;
+ # Code here to post info to Verizon web form
+ use LWP::UserAgent;
+ $ua = new LWP::UserAgent;
+ $ua->agent("Spong Verizon Gateway/0.1 " . $ua->agent);
+
+ my $req = new HTTP::Request POST => 'http://www.msg.myvzw.com/results.jsp';
+ $req->content_type('application/x-www-form-urlencoded');
+ $req->content("min=$recipient&showDisclaimer=n&Send.x=yes&sendername=spong&message=$body");
+ my $res = $ua->request($req);
+}
+
+# Required becuase I'm included perl code
+1;
+