]> git.etc.gen.nz Git - spong.git/commitdiff
modified module to use new message module API for message templates
authorStephen L Johnson <sjohnson@monsters.org>
Sat, 8 Jul 2000 18:57:45 +0000 (18:57 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Sat, 8 Jul 2000 18:57:45 +0000 (18:57 +0000)
src/lib/Spong/Message/plugins/msg_alltelsms
src/lib/Spong/Message/plugins/msg_email
src/lib/Spong/Message/plugins/msg_skytel
src/lib/Spong/Message/plugins/msg_teletouch
src/lib/Spong/Message/plugins/msg_teletouch_short

index ea89f04332f6e20cd7f4e3321f9868f9891af6e0..a448ab183705f7ae91df0cf03474c6554450d87d 100755 (executable)
@@ -4,9 +4,9 @@
 $MSGFUNCS{'alltelsms'} = \&msg_alltelsms;
 
 sub msg_alltelsms {
-   my ($phone) = @_;
+   my ($phone,$subject,$body) = @_;
 
-   &email_mini_status("$phone\@message.alltel.com",'shortsubject');
+   &email("$phone\@message.alltel.com",$subject,$body);
    &debug( "alltel sms page sent to $phone" );
 }
 
index 94620be53895471bce336884c78418d2223f1b38..b9ef6bd46611c9a477c8cb23dd82aa112b596ff5 100755 (executable)
@@ -4,9 +4,9 @@
 $MSGFUNCS{'email'} = \&msg_email;
 
 sub msg_email {
-   my ($email) = @_;
+   my ($email,$subject,$body) = @_;
 
-   &email_status($email);
+   &email($email,$subject,$body);
    &debug( "mail message sent to $email" );
 }
 
index 047ff36ab8bb5b26e5d8575e926b38eba9cd6367..0d6a8bc227961e6a9e8c8cf86bbe9d31fe6d3e6e 100755 (executable)
@@ -4,9 +4,9 @@
 $MSGFUNCS{'skytel'} = \&msg_skytel;
 
 sub msg_skytel {
-   my($skytel) = @_;
+   my($skytel,$subject,$body) = @_;
 
-   &email_status("$skytel\@skytel.net");
+   &email("$skytel\@skytel.net",$subject,$body);
    &debug( "skytel page sent to $skytel" );
 }
 
index 0859a095b0d793b6993032c4a466cfbc381b6ff2..b2984fc7b05ede04a21c7c121314942ce0af74b5 100755 (executable)
@@ -4,9 +4,9 @@
 $MSGFUNCS{'teletouch'} = \&msg_teletouch;
 
 sub msg_teletouch {
-   my ($pager) = @_;
+   my ($pager,$subject,$body) = @_;
 
-   &email_status("$pager\@pageme.teletouch.com",'shortsubject');
+   &email("$pager\@pageme.teletouch.com",$subject,$body);
    &debug( "teletouch page sent to $pager" );
 }
 
index 4b4337799ec09419241428dacaa65828205201da..88dba86bf3f80db98f17f1db366398c444624843 100755 (executable)
@@ -4,9 +4,9 @@
 $MSGFUNCS{'teletouch_short'} = \&msg_teletouch_short;
 
 sub msg_teletouch_short {
-   my ($pager) = @_;
+   my ($pager,$subject,$body) = @_;
 
-   &email_mini_status("$pager\@pageme.teletouch.com",'shortsubject');
+   &email("$pager\@pageme.teletouch.com",$subject,$body);
    &debug( "teletouch short page sent to $pager" );
 }