From 6d346296aace86b4a441573a77cd7da859e1ae07 Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Sat, 8 Jul 2000 18:57:45 +0000 Subject: [PATCH] modified module to use new message module API for message templates --- src/lib/Spong/Message/plugins/msg_alltelsms | 4 ++-- src/lib/Spong/Message/plugins/msg_email | 4 ++-- src/lib/Spong/Message/plugins/msg_skytel | 4 ++-- src/lib/Spong/Message/plugins/msg_teletouch | 4 ++-- src/lib/Spong/Message/plugins/msg_teletouch_short | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/lib/Spong/Message/plugins/msg_alltelsms b/src/lib/Spong/Message/plugins/msg_alltelsms index ea89f04..a448ab1 100755 --- a/src/lib/Spong/Message/plugins/msg_alltelsms +++ b/src/lib/Spong/Message/plugins/msg_alltelsms @@ -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" ); } diff --git a/src/lib/Spong/Message/plugins/msg_email b/src/lib/Spong/Message/plugins/msg_email index 94620be..b9ef6bd 100755 --- a/src/lib/Spong/Message/plugins/msg_email +++ b/src/lib/Spong/Message/plugins/msg_email @@ -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" ); } diff --git a/src/lib/Spong/Message/plugins/msg_skytel b/src/lib/Spong/Message/plugins/msg_skytel index 047ff36..0d6a8bc 100755 --- a/src/lib/Spong/Message/plugins/msg_skytel +++ b/src/lib/Spong/Message/plugins/msg_skytel @@ -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" ); } diff --git a/src/lib/Spong/Message/plugins/msg_teletouch b/src/lib/Spong/Message/plugins/msg_teletouch index 0859a09..b2984fc 100755 --- a/src/lib/Spong/Message/plugins/msg_teletouch +++ b/src/lib/Spong/Message/plugins/msg_teletouch @@ -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" ); } diff --git a/src/lib/Spong/Message/plugins/msg_teletouch_short b/src/lib/Spong/Message/plugins/msg_teletouch_short index 4b43377..88dba86 100755 --- a/src/lib/Spong/Message/plugins/msg_teletouch_short +++ b/src/lib/Spong/Message/plugins/msg_teletouch_short @@ -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" ); } -- 2.30.2